fix: remove an unnecessary goroutine

The stream handler runs in a goroutine anyways. We might as well block it.
This commit is contained in:
Steven Allen 2020-03-02 15:51:36 -08:00
parent 7ba322244e
commit 6cdc404180
1 changed files with 2 additions and 1 deletions

View File

@ -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()