multi: fix typos

This commit is contained in:
omahs 2024-10-08 14:41:44 +02:00 committed by GitHub
parent b4afc08a35
commit 019988b696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ type blockStore struct {
// lruMutex protects concurrent access to the least recently used list // lruMutex protects concurrent access to the least recently used list
// and lookup map. // and lookup map.
// //
// openBlocksLRU tracks how the open files are refenced by pushing the // openBlocksLRU tracks how the open files are referenced by pushing the
// most recently used files to the front of the list thereby trickling // most recently used files to the front of the list thereby trickling
// the least recently used files to end of the list. When a file needs // the least recently used files to end of the list. When a file needs
// to be closed due to exceeding the max number of allowed open // to be closed due to exceeding the max number of allowed open
@ -224,7 +224,7 @@ func serializeBlockLoc(loc blockLocation) []byte {
return serializedData[:] return serializedData[:]
} }
// blockFilePath return the file path for the provided block file number. // blockFilePath returns the file path for the provided block file number.
func blockFilePath(dbPath string, fileNum uint32) string { func blockFilePath(dbPath string, fileNum uint32) string {
fileName := fmt.Sprintf(blockFilenameTemplate, fileNum) fileName := fmt.Sprintf(blockFilenameTemplate, fileNum)
return filepath.Join(dbPath, fileName) return filepath.Join(dbPath, fileName)
@ -780,7 +780,7 @@ func scanBlockFiles(dbPath string) (int, int, uint32, error) {
// and offset set and all fields initialized. // and offset set and all fields initialized.
func newBlockStore(basePath string, network wire.BitcoinNet) (*blockStore, error) { func newBlockStore(basePath string, network wire.BitcoinNet) (*blockStore, error) {
// Look for the end of the latest block to file to determine what the // Look for the end of the latest block to file to determine what the
// write cursor position is from the viewpoing of the block files on // write cursor position is from the viewpoint of the block files on
// disk. // disk.
_, fileNum, fileOff, err := scanBlockFiles(basePath) _, fileNum, fileOff, err := scanBlockFiles(basePath)
if err != nil { if err != nil {

View File

@ -223,8 +223,8 @@ commit messages.
Here are some of the reasons why wrapping your commit messages to 72 columns is Here are some of the reasons why wrapping your commit messages to 72 columns is
a good thing. a good thing.
- git log doesnt do any special special wrapping of the commit messages. With - git log doesnt do any special wrapping of the commit messages. With the
the default pager of less -S, this means your paragraphs flow far off the edge default pager of less -S, this means your paragraphs flow far off the edge
of the screen, making them difficult to read. On an 80 column terminal, if we of the screen, making them difficult to read. On an 80 column terminal, if we
subtract 4 columns for the indent on the left and 4 more for symmetry on the subtract 4 columns for the indent on the left and 4 more for symmetry on the
right, were left with 72 columns. right, were left with 72 columns.