mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-19 10:43:35 +00:00
Cancel the download in the example to avoid to keep a future and stream running
This commit is contained in:
parent
bafca77e13
commit
f98a6b25fc
@ -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