mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-07 16:03:13 +00:00
Fix comment
This commit is contained in:
parent
92dc55ec8c
commit
287c7f89b7
@ -14,8 +14,7 @@
|
|||||||
## 2. Directly from a file path: the filepath has to be absolute.
|
## 2. Directly from a file path: the filepath has to be absolute.
|
||||||
## - INIT: creates a new upload session and returns its ID
|
## - INIT: creates a new upload session and returns its ID
|
||||||
## - FILE: starts the upload and returns the CID of the uploaded file
|
## - FILE: starts the upload and returns the CID of the uploaded file
|
||||||
## Cancel is not supported in this mode because the worker will be busy
|
## - CANCEL: cancels the upload session.
|
||||||
## uploading the file so it cannot pickup another request to cancel the upload.
|
|
||||||
|
|
||||||
import std/[options, os, mimetypes]
|
import std/[options, os, mimetypes]
|
||||||
import chronos
|
import chronos
|
||||||
@ -248,9 +247,6 @@ proc cancel(
|
|||||||
## Cancel the upload session identified by sessionId.
|
## Cancel the upload session identified by sessionId.
|
||||||
## This cancels the `node.store` future and removes the session
|
## This cancels the `node.store` future and removes the session
|
||||||
## from the table.
|
## from the table.
|
||||||
## This operation is not supported when uploading file because
|
|
||||||
## the worker will be busy uploading the file so it cannot pickup
|
|
||||||
## another request to cancel the upload.
|
|
||||||
|
|
||||||
if not uploadSessions.contains($sessionId):
|
if not uploadSessions.contains($sessionId):
|
||||||
return err("Failed to cancel the upload session, session not found: " & $sessionId)
|
return err("Failed to cancel the upload session, session not found: " & $sessionId)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user