event, whisper/whisperv6: use defer where possible (#20940)

This commit is contained in:
ucwong
2020-04-28 16:53:08 +08:00
committed by GitHub
parent 9887edd580
commit 0708b573bc
2 changed files with 2 additions and 2 deletions

View File

@ -196,9 +196,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) {