[#422] cli: Provide context to NetmapSnapshot()

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fix/writecache_metrics_duration
Evgenii Stratonikov 2023-06-02 14:45:30 +03:00
parent f1f56ef871
commit f8c1e0639d
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (repl *policyPlaygroundREPL) run() error {
var prm internalclient.NetMapSnapshotPrm
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)
for _, node := range resp.NetMap().Nodes() {