Skip to content

Commit

Permalink
fix(broadcast): added cancel to processor
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksander-vedvik committed Jun 15, 2024
1 parent 4efb50c commit 7d2935f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions broadcast/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ func (p *BroadcastProcessor) handleMsg(new *Content, metadata *metadata) bool {
return false
}
if new.IsCancellation {
if p.cancellationCtxCancel != nil {
p.cancellationCtxCancel()
}
// the cancellation implementation is just an
// empty function and does not need the ctx or
// broadcastChan.
Expand Down

0 comments on commit 7d2935f

Please sign in to comment.