mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Revert "cancel context before waiting for waitgroup to avoid deadlock in RPC on error (#5345)" (#5360)
This reverts commit 9ff5b21a1e
.
This commit is contained in:
parent
079b0d9074
commit
566cd65664
@ -241,8 +241,8 @@ func (h *handler) handleMsg(msg *jsonrpcMessage, stream *jsoniter.Stream) {
|
||||
// call goroutines to shut down.
|
||||
func (h *handler) close(err error, inflightReq *requestOp) {
|
||||
h.cancelAllRequests(err, inflightReq)
|
||||
h.cancelRoot()
|
||||
h.callWG.Wait()
|
||||
h.cancelRoot()
|
||||
h.cancelServerSubscriptions(err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user