Skip to content

Commit

Permalink
Merge pull request #198 from GoodDaisy/main
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
qzhodl authored Feb 1, 2024
2 parents e5dbe5c + d653084 commit 7b17a89
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ethstorage/data_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
HEADER_SIZE = 4096
)

// A DataFile represents a local file for a consective chunks
// A DataFile represents a local file for a consecutive chunks
type DataFile struct {
file *os.File
chunkIdxStart uint64
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/data_shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

// A DataShard is a logical shard that manages multiple DataFiles.
// It also manages the encoding/decoding, tranlation from KV read/write to chunk read/write,
// It also manages the encoding/decoding, translation from KV read/write to chunk read/write,
// and sanity check of the data files.
type DataShard struct {
shardIdx uint64
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (n *EsNode) initStorageManager(ctx context.Context, cfg *Config) error {
return fmt.Errorf("shard is not completed")
}

log.Info("Initalized storage",
log.Info("Initialized storage",
"miner", cfg.Storage.Miner,
"l1contract", cfg.Storage.L1Contract,
"kvSize", shardManager.MaxKvSize(),
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/p2p/protocol/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ func TestCloseSyncWhileFillEmpty(t *testing.T) {

t.Log("Fill empty status", "filled", syncCl.emptyBlobsFilled, "toFill", syncCl.emptyBlobsToFill)
if syncCl.syncDone {
t.Fatalf("fill empty shoud be cancel")
t.Fatalf("fill empty should be cancel")
}
}

Expand Down
2 changes: 1 addition & 1 deletion ethstorage/shard_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (sm *ShardManager) TryRead(kvIdx uint64, readLen int, commit common.Hash) (
}
}

// TryEncodeKV encode the KV data using the miner and encodeType specfied by the data shard.
// TryEncodeKV encode the KV data using the miner and encodeType specified by the data shard.
// Return false if the data is not managed by the ShardManager.
func (sm *ShardManager) TryEncodeKV(kvIdx uint64, b []byte, hash common.Hash) ([]byte, bool, error) {
shardIdx := kvIdx / sm.kvEntries
Expand Down

0 comments on commit 7b17a89

Please sign in to comment.