Skip to content

Commit

Permalink
Fix shutdown deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Patel committed Feb 24, 2022
1 parent 6398fe8 commit ad29199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func main() {

// Pull price updates from RPC.
group.Go(func() error {
defer close(updates)
return client.StreamPriceAccounts(ctx, updates)
})

Expand Down

0 comments on commit ad29199

Please sign in to comment.