Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 8f8be55

Browse files
author
ethan
committed
storage_driver.go: property name be "offset"
Signed-off-by: Guangming Wang <[email protected]>
1 parent c0ecd29 commit 8f8be55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supernode/store/storage_driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import (
3030
// the different pieces of the same file concurrently.
3131
type StorageDriver interface {
3232
// Get data from the storage based on raw information.
33-
// If the length<=0, the driver should return all data from the raw.offest.
33+
// If the length<=0, the driver should return all data from the raw.offset.
3434
// Otherwise, just return the data which starts from raw.offset and the length is raw.length.
3535
Get(ctx context.Context, raw *Raw) (io.Reader, error)
3636

3737
// Get data from the storage based on raw information.
3838
// The data should be returned in bytes.
39-
// If the length<=0, the storage driver should return all data from the raw.offest.
39+
// If the length<=0, the storage driver should return all data from the raw.offset.
4040
// Otherwise, just return the data which starts from raw.offset and the length is raw.length.
4141
GetBytes(ctx context.Context, raw *Raw) ([]byte, error)
4242

0 commit comments

Comments
 (0)