remove 2nd rpc closer call
This commit is contained in:
parent
2681c2a51a
commit
8740fb4bbe
@ -467,11 +467,10 @@ func (n *Ensemble) Start() *Ensemble {
|
|||||||
withRPC, rpcCloser := fullRpc(n.t, full)
|
withRPC, rpcCloser := fullRpc(n.t, full)
|
||||||
n.inactive.fullnodes[i] = withRPC
|
n.inactive.fullnodes[i] = withRPC
|
||||||
full.Stop = func(ctx2 context.Context) error {
|
full.Stop = func(ctx2 context.Context) error {
|
||||||
//rpcCloser()
|
|
||||||
rpcShutdownOnce.Do(rpcCloser)
|
rpcShutdownOnce.Do(rpcCloser)
|
||||||
return stop(ctx)
|
return stop(ctx)
|
||||||
}
|
}
|
||||||
n.t.Cleanup(func() { rpcShutdownOnce.Do(rpcCloser) })
|
//n.t.Cleanup(func() { rpcShutdownOnce.Do(rpcCloser) })
|
||||||
}
|
}
|
||||||
|
|
||||||
n.t.Cleanup(func() {
|
n.t.Cleanup(func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user