Skip to content

Commit ad29199

Browse files
author
Richard Patel
committed
Fix shutdown deadlock
1 parent 6398fe8 commit ad29199

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func main() {
129129

130130
// Pull price updates from RPC.
131131
group.Go(func() error {
132+
defer close(updates)
132133
return client.StreamPriceAccounts(ctx, updates)
133134
})
134135

0 commit comments

Comments
 (0)