fix_: panic: send on closed channel (#5352)

This commit is contained in:
frank 2024-06-14 20:58:49 +08:00 committed by GitHub
parent 68acef62d4
commit 63e8750aea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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 {