Skip to content

Commit

Permalink
fix: update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 27, 2024
1 parent d90c3b5 commit f10563a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/pkg/chain/websocketchainreader/websocketreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (c *ChainReader) handleSubscription(ctx context.Context, config *SubscribeC
}

headerSubChan := make(chan *types.Header, 1)
defer close(headerSubChan)
// Subscribe to new head just to keep connection alive (ignoring the results)
subNewHead, err := c.client(config.ChainType).SubscribeNewHead(ctx, headerSubChan)
if err != nil {
Expand Down

0 comments on commit f10563a

Please sign in to comment.