From 0b2613ec21a3024f1632adde32010346b969c912 Mon Sep 17 00:00:00 2001 From: qwdsds <50311944+qwdsds@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:10:57 +0800 Subject: [PATCH] chore: fix typos --- storage/pipeline/commit_batch.go | 2 +- storage/sealer/partialfile/partialfile.go | 4 ++-- storage/sealer/sched_worker.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/pipeline/commit_batch.go b/storage/pipeline/commit_batch.go index d702d3078..ecb8569d0 100644 --- a/storage/pipeline/commit_batch.go +++ b/storage/pipeline/commit_batch.go @@ -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) diff --git a/storage/sealer/partialfile/partialfile.go b/storage/sealer/partialfile/partialfile.go index bb3cfb590..f811f3349 100644 --- a/storage/sealer/partialfile/partialfile.go +++ b/storage/sealer/partialfile/partialfile.go @@ -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() diff --git a/storage/sealer/sched_worker.go b/storage/sealer/sched_worker.go index 35acd755d..b482be589 100644 --- a/storage/sealer/sched_worker.go +++ b/storage/sealer/sched_worker.go @@ -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