mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
Cancel the download in the example to avoid to keep a future and stream running
This commit is contained in:
parent
5eb5ace4f2
commit
b70a4ef2a7
@ -1278,6 +1278,12 @@ func main() {
|
||||
|
||||
log.Println("Codex Download Chunk finished. Size:", len(chunk))
|
||||
|
||||
if err := node.CodexDownloadCancel(cid); err != nil {
|
||||
log.Fatal("Error happened:", err.Error())
|
||||
}
|
||||
|
||||
log.Println("Codex Download Cancel finished.")
|
||||
|
||||
manifest, err := node.CodexDownloadManifest(cid)
|
||||
if err != nil {
|
||||
log.Fatal("Error happened:", err.Error())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user