mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
Defer download cancel after the download session is created
This commit is contained in:
parent
3d66b10fa9
commit
bcdff2f8ba
@ -199,6 +199,8 @@ func (node CodexNode) DownloadStream(ctx context.Context, cid string, options Do
|
||||
return err
|
||||
}
|
||||
|
||||
defer node.DownloadCancel(cid)
|
||||
|
||||
var cFilepath = C.CString(options.Filepath)
|
||||
defer C.free(unsafe.Pointer(cFilepath))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user