From 91c5ef4a3af95fa0b92c4aebe32712c29610de10 Mon Sep 17 00:00:00 2001 From: CobraLin <939255716@qq.com> Date: Sat, 20 Apr 2024 13:54:43 +0800 Subject: [PATCH] Fix typo --- ethstorage/p2p/protocol/sync_test.go | 2 +- ethstorage/storage_manager.go | 2 +- ethstorage/storage_manager_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethstorage/p2p/protocol/sync_test.go b/ethstorage/p2p/protocol/sync_test.go index 9c8c51cf..84f8d634 100644 --- a/ethstorage/p2p/protocol/sync_test.go +++ b/ethstorage/p2p/protocol/sync_test.go @@ -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} } diff --git a/ethstorage/storage_manager.go b/ethstorage/storage_manager.go index 8868477f..00ed4993 100644 --- a/ethstorage/storage_manager.go +++ b/ethstorage/storage_manager.go @@ -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 diff --git a/ethstorage/storage_manager_test.go b/ethstorage/storage_manager_test.go index 0450291f..432afe5d 100644 --- a/ethstorage/storage_manager_test.go +++ b/ethstorage/storage_manager_test.go @@ -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)