Skip to content

Commit

Permalink
go routine for pub chan (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfarmer-fearless committed Sep 16, 2024
1 parent 7dc4b4e commit fde18a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upload-server/internal/event/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func (mp *MemoryPublisher[T]) Publish(_ context.Context, event T) error {
}

if mp.Chan != nil {
mp.Chan <- event
go func() {
mp.Chan <- event
}()
}
return nil
}
Expand Down

0 comments on commit fde18a8

Please sign in to comment.