Skip to content

Commit 7ee695a

Browse files
authored
chore: fix some typos (#13248)
Signed-off-by: queryfast <[email protected]>
1 parent 190d781 commit 7ee695a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

chain/messagepool/messagepool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func TestLoadLocal(t *testing.T) {
616616
}
617617

618618
if len(msgs) > 0 {
619-
t.Fatalf("not all messages were laoded; missing %d messages", len(msgs))
619+
t.Fatalf("not all messages were loaded; missing %d messages", len(msgs))
620620
}
621621
}
622622

chain/stmgr/searchwait.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (sm *StateManager) searchBackForMsg(ctx context.Context, from *types.TipSet
244244
cur := from
245245
curActor, err := sm.LoadActor(ctx, m.VMMessage().From, cur)
246246
if err != nil {
247-
return nil, nil, cid.Undef, xerrors.Errorf("failed to load initital tipset")
247+
return nil, nil, cid.Undef, xerrors.Errorf("failed to load initial tipset")
248248
}
249249

250250
mFromId, err := sm.LookupIDAddress(ctx, m.VMMessage().From, from)

cli/spcli/actor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ func ActorCompactAllocatedCmd(getActor ActorAddressGetter) *cli.Command {
13841384
if last <= m+1 {
13851385
return xerrors.Errorf("highest allocated sector lower than mask offset %d: %d", m+1, last)
13861386
}
1387-
// securty to not brick a miner
1387+
// security to not brick a miner
13881388
if last > 1<<60 {
13891389
return xerrors.Errorf("very high last sector number, refusing to mask: %d", last)
13901390
}

storage/sealer/ffiwrapper/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type SectorProvider interface {
1111
// * returns storiface.ErrSectorNotFound if a requested existing sector doesn't exist
1212
// * returns an error when allocate is set, and existing isn't, and the sector exists
1313
AcquireSector(ctx context.Context, id storiface.SectorRef, existing storiface.SectorFileType, allocate storiface.SectorFileType, ptype storiface.PathType) (storiface.SectorPaths, func(), error)
14-
// AcquireSector, but a copy to preseve its long-term storage location.
14+
// AcquireSector, but a copy to preserve its long-term storage location.
1515
AcquireSectorCopy(ctx context.Context, id storiface.SectorRef, existing storiface.SectorFileType, allocate storiface.SectorFileType, ptype storiface.PathType) (storiface.SectorPaths, func(), error)
1616
}
1717

0 commit comments

Comments
 (0)