client: Terminate session in ReadIteratorItems #85

Merged
fyrchik merged 1 commit from aarifullin/frostfs-contract:fix/terminate_session into master 2024-04-09 11:20:42 +00:00

View file

@ -29,6 +29,10 @@ func ReadIteratorItems(inv Invoker, batchSize int, contract util.Uint160, method
return arr, nil
}
defer func() {
_ = inv.TerminateSession(sessionID)
}()
var shouldStop bool
res := arr
for !shouldStop {