Skip to content

Commit

Permalink
Merge pull request #820 from libp2p/fix/remove-goroutine
Browse files Browse the repository at this point in the history
fix: remove an unnecessary goroutine
  • Loading branch information
Stebalien authored Mar 7, 2020
2 parents d6d2081 + 6cdc404 commit 4ccf017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/protocol/identify/id_delta.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func (ids *IDService) deltaHandler(s network.Stream) {
return
}

defer func() { go helpers.FullClose(s) }()
defer helpers.FullClose(s)

log.Debugf("%s received message from %s %s", s.Protocol(), c.RemotePeer(), c.RemoteMultiaddr())

delta := mes.GetDelta()
Expand Down

0 comments on commit 4ccf017

Please sign in to comment.