fix: remove an unnecessary goroutine
The stream handler runs in a goroutine anyways. We might as well block it.
This commit is contained in:
parent
7ba322244e
commit
6cdc404180
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue