diff --git a/client/client.go b/client/client.go index f6530de..4dd5059 100644 --- a/client/client.go +++ b/client/client.go @@ -100,6 +100,8 @@ func (c *Client) Dial(ctx context.Context, prm PrmDial) error { c.setFrostFSAPIServer((*coreServer)(&c.c)) + ctx, cancel := context.WithTimeout(ctx, prm.DialTimeout) + defer cancel() _, err := rpc.Balance(&c.c, new(v2accounting.BalanceRequest), client.WithContext(ctx), )