[#422] cli: Provide context to NetmapSnapshot()
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
f1f56ef871
commit
f8c1e0639d
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func (repl *policyPlaygroundREPL) run() error {
|
||||||
var prm internalclient.NetMapSnapshotPrm
|
var prm internalclient.NetMapSnapshotPrm
|
||||||
prm.SetClient(cli)
|
prm.SetClient(cli)
|
||||||
|
|
||||||
resp, err := internalclient.NetMapSnapshot(prm)
|
resp, err := internalclient.NetMapSnapshot(repl.cmd.Context(), prm)
|
||||||
commonCmd.ExitOnErr(repl.cmd, "unable to get netmap snapshot to populate initial netmap: %w", err)
|
commonCmd.ExitOnErr(repl.cmd, "unable to get netmap snapshot to populate initial netmap: %w", err)
|
||||||
|
|
||||||
for _, node := range resp.NetMap().Nodes() {
|
for _, node := range resp.NetMap().Nodes() {
|
||||||
|
|
Loading…
Reference in a new issue