Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
qwdsds authored and rvagg committed Mar 14, 2024
1 parent 81e65db commit 0b2613e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion storage/pipeline/commit_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions storage/sealer/partialfile/partialfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion storage/sealer/sched_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b2613e

Please sign in to comment.