mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
event, whisper/whisperv6: use defer where possible (#20940)
# Conflicts: # whisper/whisperv6/whisper.go
This commit is contained in:
parent
d047bc90cd
commit
3bf99802c6
@ -194,9 +194,9 @@ func (s *TypeMuxSubscription) closewait() {
|
||||
s.closed = true
|
||||
|
||||
s.postMu.Lock()
|
||||
defer s.postMu.Unlock()
|
||||
close(s.postC)
|
||||
s.postC = nil
|
||||
s.postMu.Unlock()
|
||||
}
|
||||
|
||||
func (s *TypeMuxSubscription) deliver(event *TypeMuxEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user