diff --git a/client/daemon/storage/local_storage.go b/client/daemon/storage/local_storage.go index 54e6a0ab84a..6c1d5a04299 100644 --- a/client/daemon/storage/local_storage.go +++ b/client/daemon/storage/local_storage.go @@ -210,7 +210,7 @@ func (t *localTaskStore) IsInvalid(*PeerTaskMetadata) (bool, error) { return t.invalid.Load(), nil } -// ReadPiece get a LimitReadCloser from task data with seeked, caller should read bytes and close it. +// ReadPiece get a LimitReadCloser from task data with sought, caller should read bytes and close it. func (t *localTaskStore) ReadPiece(ctx context.Context, req *ReadPieceRequest) (io.Reader, io.Closer, error) { if t.invalid.Load() { t.Errorf("invalid digest, refuse to get pieces") diff --git a/client/daemon/storage/storage_manager.go b/client/daemon/storage/storage_manager.go index a8374df75c4..9c698560c9d 100644 --- a/client/daemon/storage/storage_manager.go +++ b/client/daemon/storage/storage_manager.go @@ -48,7 +48,7 @@ type TaskStorageDriver interface { WritePiece(ctx context.Context, req *WritePieceRequest) (int64, error) // ReadPiece get a piece data reader of a task from storage - // return a Reader and a Closer from task data with seeked, caller should read bytes and close it. + // return a Reader and a Closer from task data with sought, caller should read bytes and close it. // If req.Num is equal to -1, range has a fixed value. ReadPiece(ctx context.Context, req *ReadPieceRequest) (io.Reader, io.Closer, error)