remove 2nd rpc closer call

This commit is contained in:
Shrenuj Bansal 2022-11-11 16:41:01 -05:00
parent 2681c2a51a
commit 8740fb4bbe

View File

@ -467,11 +467,10 @@ func (n *Ensemble) Start() *Ensemble {
withRPC, rpcCloser := fullRpc(n.t, full)
n.inactive.fullnodes[i] = withRPC
full.Stop = func(ctx2 context.Context) error {
//rpcCloser()
rpcShutdownOnce.Do(rpcCloser)
return stop(ctx)
}
n.t.Cleanup(func() { rpcShutdownOnce.Do(rpcCloser) })
//n.t.Cleanup(func() { rpcShutdownOnce.Do(rpcCloser) })
}
n.t.Cleanup(func() {