Skip to content

Commit

Permalink
fix bugs after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Oct 2, 2024
1 parent f998352 commit 3aeee13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions access/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type BaseClient struct {
close func() error
jsonOptions []json.Option
eventEncoding flow.EventEncodingVersion
messageIndex atomic.Uint64
}

// NewBaseClient creates a new gRPC handler for network communication.
Expand Down Expand Up @@ -1324,7 +1325,7 @@ func (c *BaseClient) SubscribeAccountStatusesFromStartHeight(
go func() {
defer close(accountStatutesChan)
defer close(errChan)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.msgIndex)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.messageIndex)
}()

return accountStatutesChan, errChan, nil
Expand Down Expand Up @@ -1356,7 +1357,7 @@ func (c *BaseClient) SubscribeAccountStatusesFromStartBlockID(
go func() {
defer close(accountStatutesChan)
defer close(errChan)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.msgIndex)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.messageIndex)
}()

return accountStatutesChan, errChan, nil
Expand Down Expand Up @@ -1386,7 +1387,7 @@ func (c *BaseClient) SubscribeAccountStatusesFromLatestBlock(
go func() {
defer close(accountStatutesChan)
defer close(errChan)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.msgIndex)
receiveAccountStatusesFromClient(ctx, subscribeClient, accountStatutesChan, errChan, &c.messageIndex)
}()

return accountStatutesChan, errChan, nil
Expand Down

0 comments on commit 3aeee13

Please sign in to comment.