chore: fix typos

This commit is contained in:
qwdsds 2024-03-12 16:10:57 +08:00 committed by Rod Vagg
parent 81e65dba56
commit 0b2613ec21
3 changed files with 4 additions and 4 deletions

View File

@ -841,7 +841,7 @@ func (b *CommitBatcher) getCommitCutoff(si SectorInfo) (time.Time, error) {
}
av, err := actorstypes.VersionForNetwork(nv)
if err != nil {
log.Errorf("unsupported network vrsion: %s", err)
log.Errorf("unsupported network version: %s", err)
return time.Now(), err
}
mpcd, err := policy.GetMaxProveCommitDuration(av, si.SectorType)

View File

@ -64,7 +64,7 @@ func writeTrailer(maxPieceSize int64, w *os.File, r rlepluslazy.RunIterator) err
func CreatePartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialFile, error) {
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0644) // nolint
if err != nil {
return nil, xerrors.Errorf("openning partial file '%s': %w", path, err)
return nil, xerrors.Errorf("opening partial file '%s': %w", path, err)
}
err = func() error {
@ -99,7 +99,7 @@ func CreatePartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialF
func OpenPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*PartialFile, error) {
f, err := os.OpenFile(path, os.O_RDWR, 0644) // nolint
if err != nil {
return nil, xerrors.Errorf("openning partial file '%s': %w", path, err)
return nil, xerrors.Errorf("opening partial file '%s': %w", path, err)
}
st, err := f.Stat()

View File

@ -137,7 +137,7 @@ func (sw *schedWorker) handleWorker() {
}
// wait for more tasks to be assigned by the main scheduler or for the worker
// to finish precessing a task
// to finish processing a task
update, pokeSched, ok := sw.waitForUpdates()
if !ok {
return