Skip to content

Commit

Permalink
Add Sub to GeyserClient
Browse files Browse the repository at this point in the history
  • Loading branch information
captainyugi00 committed Aug 24, 2024
1 parent 9e797a6 commit fa1a4c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions yellowstone-geyser/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func (gc *YellowstoneGeyserClient) Subscribe(

// Store the subscription request in the client.
gc.Stream = &stream
gc.StreamSubscription = &subscription

// Return the stream for receiving updates.
return nil
Expand Down
7 changes: 4 additions & 3 deletions yellowstone-geyser/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
// YellowstoneGeyserClient is the main client struct that holds the gRPC connection
// and the GeyserClient for communicating with the Yellowstone Geyser service.
type YellowstoneGeyserClient struct {
GRPCConn *grpc.ClientConn
Stream *pb.Geyser_SubscribeClient
Client pb.GeyserClient
GRPCConn *grpc.ClientConn
Stream *pb.Geyser_SubscribeClient
StreamSubscription *pb.SubscribeRequest
Client pb.GeyserClient
}

0 comments on commit fa1a4c1

Please sign in to comment.