From d8da1e4a65e84a9f6159083ed605cba2b8408888 Mon Sep 17 00:00:00 2001 From: Max Peng Date: Wed, 15 Apr 2020 14:58:47 +0800 Subject: [PATCH] fix typo in the method name Signed-off-by: Max Peng --- common/ledger/blkstorage/fsblkstorage/blockfile_helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ledger/blkstorage/fsblkstorage/blockfile_helper.go b/common/ledger/blkstorage/fsblkstorage/blockfile_helper.go index 9214e170d31..eefc6f5bc73 100644 --- a/common/ledger/blkstorage/fsblkstorage/blockfile_helper.go +++ b/common/ledger/blkstorage/fsblkstorage/blockfile_helper.go @@ -91,7 +91,7 @@ func binarySearchFileNumForBlock(rootDir string, blockNum uint64) (int, error) { for endFile != beginFile { searchFile := beginFile + (endFile-beginFile)/2 + 1 - n, err := retriveFirstBlockNumFromFile(rootDir, searchFile) + n, err := retrieveFirstBlockNumFromFile(rootDir, searchFile) if err != nil { return -1, err } @@ -107,7 +107,7 @@ func binarySearchFileNumForBlock(rootDir string, blockNum uint64) (int, error) { return beginFile, nil } -func retriveFirstBlockNumFromFile(rootDir string, fileNum int) (uint64, error) { +func retrieveFirstBlockNumFromFile(rootDir string, fileNum int) (uint64, error) { s, err := newBlockfileStream(rootDir, fileNum, 0) if err != nil { return 0, err