Add cleanup tasks individually

This commit is contained in:
Chris Roberts 2022-06-20 12:55:18 -07:00
parent b5233bc86b
commit a0c78056d2

View File

@ -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