Skip to content

Commit

Permalink
cursor resolver: correctly shut down the source when the context is c…
Browse files Browse the repository at this point in the history
…anceled
  • Loading branch information
colindickson committed Jan 10, 2025
1 parent 6c63763 commit fb78912
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pipeline/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func NewCursorResolver(hub *hub.ForkableHub, mergedBlocksStore, forkedBlocksStor
src.Run()
select {
case <-ctx.Done():
src.Shutdown(ctx.Err())
return nil, nil, ctx.Err()
case <-src.Terminated():
}
Expand Down

0 comments on commit fb78912

Please sign in to comment.