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

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-06-02 14:45:30 +03:00
parent f1f56ef871
commit f8c1e0639d

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() {