Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #278

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethstorage/p2p/protocol/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewMockL1Source(lastBlobIndex uint64, metafile string) *mockL1Source {

file, err := os.OpenFile(metafile, os.O_RDONLY, 0600)
if err != nil {
panic(fmt.Sprintf("open metafile faiil with err %s", err.Error()))
panic(fmt.Sprintf("open metafile fail with err %s", err.Error()))
}
return &mockL1Source{lastBlobIndex: lastBlobIndex, metaFile: file}
}
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/storage_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *StorageManager) DownloadFinished(newL1 int64, kvIndices []uint64, blobs
var err error = nil
for _, idx := range insertIdx {
c := prepareCommit(commits[idx])
// if return false, just ignore because we are not intersted in it
// if return false, just ignore because we are not interested in it
_, err = s.shardManager.TryWrite(kvIndices[idx], blobs[idx], c)
if err != nil {
break
Expand Down
2 changes: 1 addition & 1 deletion ethstorage/storage_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func TestStorageManager_DownloadFinished(t *testing.T) {
err := storageManager.DownloadFinished(97529, []uint64{2}, [][]byte{{10}}, []common.Hash{h})

if err != nil {
t.Fatal("failed to Downloand Finished", err)
t.Fatal("failed to Download Finished", err)
}

bs, success, err := storageManager.TryReadMeta(2)
Expand Down
Loading