diff --git a/client/client.go b/client/client.go index 46c4fa3e..bea46f6d 100644 --- a/client/client.go +++ b/client/client.go @@ -105,6 +105,10 @@ func (c *Client) Dial(prm PrmDial) error { c.setNeoFSAPIServer((*coreServer)(&c.c)) + if prm.parentCtx == nil { + prm.parentCtx = context.Background() + } + // TODO: (neofs-api-go#382) perform generic dial stage of the client.Client _, err := rpc.Balance(&c.c, new(v2accounting.BalanceRequest), client.WithContext(prm.parentCtx),