Skip to content

Commit

Permalink
fix typo in the method name
Browse files Browse the repository at this point in the history
Signed-off-by: Max Peng <pengisgood@gmail.com>
  • Loading branch information
pengisgood authored and mastersingh24 committed Apr 15, 2020
1 parent 3507335 commit d8da1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/ledger/blkstorage/fsblkstorage/blockfile_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit d8da1e4

Please sign in to comment.