forked from TrueCloudLab/frostfs-node
[#406] cli: Pass context to internal client
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
63473d0806
commit
9562123c49
24 changed files with 83 additions and 82 deletions
|
@ -25,7 +25,7 @@ var nodeInfoCmd = &cobra.Command{
|
|||
var prm internalclient.NodeInfoPrm
|
||||
prm.SetClient(cli)
|
||||
|
||||
res, err := internalclient.NodeInfo(prm)
|
||||
res, err := internalclient.NodeInfo(cmd.Context(), prm)
|
||||
commonCmd.ExitOnErr(cmd, "rpc error: %w", err)
|
||||
|
||||
prettyPrintNodeInfo(cmd, res.NodeInfo())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue