Skip to content

Commit

Permalink
Merge pull request #6330 from redismongo/master
Browse files Browse the repository at this point in the history
chore: fix some typos in comments
  • Loading branch information
simlecode authored Apr 30, 2024
2 parents 4e48cf5 + b0b3792 commit 4dd92ba
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pkg/consensusfault/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func verifyBlockSignature(ctx context.Context, blk types.BlockHeader, nv network

lbstate, err := getter(ctx, blk.Height)
if err != nil {
return fmt.Errorf("fialed to look back state at height %d", blk.Height)
return fmt.Errorf("failed to look back state at height %d", blk.Height)
}

act, err := lbstate.LoadActor(ctx, receiver)
Expand Down
2 changes: 1 addition & 1 deletion pkg/messagepool/messagepool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (tma *testMpoolAPI) MessagesForBlock(ctx context.Context, h *types.BlockHea

func (tma *testMpoolAPI) MessagesForTipset(ctx context.Context, ts *types.TipSet) ([]types.ChainMsg, error) {
if len(ts.Blocks()) != 1 {
panic("cant deal with multiblock tipsets in this test")
panic("can't deal with multiblock tipsets in this test")
}

bm, sm, err := tma.MessagesForBlock(ctx, ts.Blocks()[0])
Expand Down
2 changes: 1 addition & 1 deletion pkg/paychmgr/paych.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (ca *channelAccessor) listVouchers(ctx context.Context, ch address.Address)
// the data store over the chain state
func (ca *channelAccessor) laneState(ctx context.Context, state lpaych.State, ch address.Address) (map[uint64]lpaych.LaneState, error) {
// TODO: we probably want to call UpdateChannelState with all vouchers to be fully correct
// (but technically dont't need to)
// (but technically don't need to)

laneCount, err := state.LaneCount()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/repo/fsrepo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestFSRepoRoundtrip(t *testing.T) {
tf.UnitTest(t)

cfg := config.NewDefaultConfig()
cfg.API.APIAddress = "foo" // testing that what we get back isnt just the default
cfg.API.APIAddress = "foo" // testing that what we get back isn't just the default

repoPath := path.Join(t.TempDir(), "repo")
assert.NoError(t, InitFSRepo(repoPath, 42, cfg))
Expand Down
8 changes: 4 additions & 4 deletions pkg/state/power_table_view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

func TestTotal(t *testing.T) {
// todo think a way to mock power directly
t.Skipf("skip it due to cant mock power directly ")
t.Skipf("skip it due to can't mock power directly ")
tf.UnitTest(t)

ctx := context.Background()
Expand All @@ -48,7 +48,7 @@ func TestTotal(t *testing.T) {

func TestMiner(t *testing.T) {
// todo think a way to mock power directly
t.Skipf("skip it due to cant mock power directly ")
t.Skipf("skip it due to can't mock power directly ")
tf.UnitTest(t)

ctx := context.Background()
Expand All @@ -69,7 +69,7 @@ func TestMiner(t *testing.T) {

func TestNoPowerAfterSlash(t *testing.T) {
// todo think a way to mock power directly
t.Skipf("skip it due to cant mock power directly ")
t.Skipf("skip it due to can't mock power directly ")
tf.UnitTest(t)
// setup lookback state with 3 miners
ctx := context.Background()
Expand All @@ -88,7 +88,7 @@ func TestNoPowerAfterSlash(t *testing.T) {

func TestTotalPowerUnaffectedBySlash(t *testing.T) {
// todo think a way to mock power directly
t.Skipf("skip it due to cant mock power directly ")
t.Skipf("skip it due to can't mock power directly ")
tf.UnitTest(t)
ctx := context.Background()
numCommittedSectors := uint64(19)
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/dispatch/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (cl CodeLoader) GetActorImpl(code cid.Cid, rt vmr.Runtime) (Dispatcher, *Ex
return nil, NewExcuteError(exitcode.SysErrorIllegalActor, "Actor code not found. code: %s", code)
}
if err := actor.predicate(rt, code); err != nil {
return nil, NewExcuteError(exitcode.SysErrorIllegalActor, "unsupport actor. code: %s", code)
return nil, NewExcuteError(exitcode.SysErrorIllegalActor, "unsupported actor. code: %s", code)
}

return &actorDispatcher{code: code, actor: actor.vmActor}, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/wallet/key/keyinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (ki KeyInfo) MarshalJSON() ([]byte, error) {
} else if ki.SigType == crypto.SigTypeDelegated {
k.SigType = types.KTDelegated
} else {
return fmt.Errorf("unsupport keystore types %T", k.SigType)
return fmt.Errorf("unsupported keystore types %T", k.SigType)
}
b, err = json.Marshal(k)
return err
Expand Down
2 changes: 1 addition & 1 deletion venus-shared/types/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (uid *UUID) Scan(value interface{}) error {
case []byte:
id, err = uuid.ParseBytes(value)
default:
return fmt.Errorf("unsupport %t type for uuid", value)
return fmt.Errorf("unsupported %t type for uuid", value)
}
if err != nil {
return err
Expand Down

0 comments on commit 4dd92ba

Please sign in to comment.