fix_: panic: send on closed channel (#5352)
This commit is contained in:
parent
68acef62d4
commit
63e8750aea
|
@ -172,7 +172,6 @@ func (m *EnvelopesMonitor) handleEnvelopeEvents() {
|
|||
events := make(chan types.EnvelopeEvent, 100) // must be buffered to prevent blocking waku
|
||||
sub := m.w.SubscribeEnvelopeEvents(events)
|
||||
defer func() {
|
||||
close(events)
|
||||
sub.Unsubscribe()
|
||||
}()
|
||||
for {
|
||||
|
|
Loading…
Reference in New Issue