mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-02-25 16:23:13 +00:00
fix:during unsubscribeAll, remove peer without any checks
This commit is contained in:
parent
baeaa1dd55
commit
af7471d158
@ -436,9 +436,7 @@ func (wf *WakuFilterLightnode) UnsubscribeAll(ctx context.Context, opts ...Filte
|
||||
localWg.Wait()
|
||||
close(resultChan)
|
||||
for _, peerID := range peersUnsubscribed {
|
||||
if len(wf.subscriptions.items[peerID].subscriptionsPerTopic) == 0 {
|
||||
delete(wf.subscriptions.items, peerID)
|
||||
}
|
||||
delete(wf.subscriptions.items, peerID)
|
||||
}
|
||||
return resultChan, nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user