Add cleanup tasks individually
This commit is contained in:
parent
b5233bc86b
commit
a0c78056d2
@ -174,7 +174,9 @@ func (c *Client) initLocalServer(ctx context.Context) (_ *grpc.ClientConn, err e
|
||||
}
|
||||
|
||||
// Have the defined cleanups run when the basis is closed
|
||||
c.Cleanup(cleanups...)
|
||||
for _, fn := range cleanups {
|
||||
c.Cleanup(fn)
|
||||
}
|
||||
|
||||
_ = cancel // pacify vet lostcancel
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user