diff --git a/app/vmselect/netstorage/tmp_blocks_file.go b/app/vmselect/netstorage/tmp_blocks_file.go index 78288d538..f62b8e48e 100644 --- a/app/vmselect/netstorage/tmp_blocks_file.go +++ b/app/vmselect/netstorage/tmp_blocks_file.go @@ -138,7 +138,7 @@ func (tbf *tmpBlocksFile) Finalize() error { tbf.buf = tbf.buf[:0] r := fs.NewReaderAt(tbf.f) - // Hint the OS that the file is read almost sequentiallly. + // Hint the OS that the file is read almost sequentially. // This should reduce the number of disk seeks, which is important // for HDDs. r.MustFadviseSequentialRead(true) diff --git a/lib/fs/fs.go b/lib/fs/fs.go index 980066b10..9a451fb24 100644 --- a/lib/fs/fs.go +++ b/lib/fs/fs.go @@ -52,7 +52,7 @@ func MustWriteSync(path string, data []byte) { // in the middle of the write. // // If the file at path already exists, then the file is overwritten atomically if canOverwrite is true. -// Otherwise error is returned. +// Otherwise, error is returned. func MustWriteAtomic(path string, data []byte, canOverwrite bool) { // Check for the existing file. It is expected that // the MustWriteAtomic function cannot be called concurrently