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

Commit

Permalink
storage_driver.go: property name be "offset"
Browse files Browse the repository at this point in the history
Signed-off-by: Guangming Wang <[email protected]>
  • Loading branch information
ethan committed Aug 9, 2019
1 parent c0ecd29 commit 8f8be55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions supernode/store/storage_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import (
// the different pieces of the same file concurrently.
type StorageDriver interface {
// Get data from the storage based on raw information.
// If the length<=0, the driver should return all data from the raw.offest.
// If the length<=0, the driver should return all data from the raw.offset.
// Otherwise, just return the data which starts from raw.offset and the length is raw.length.
Get(ctx context.Context, raw *Raw) (io.Reader, error)

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

Expand Down

0 comments on commit 8f8be55

Please sign in to comment.