Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #12333

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/market/fundmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (a *fundedAddress) processWithdrawals(withdrawals []*fundRequest) (msgCid c
return withdrawFundsCid, nil
}

// asynchonously wait for results of message
// asynchronously wait for results of message
func (a *fundedAddress) startWaitForResults(msgCid cid.Cid) {
go func() {
err := a.env.WaitMsg(a.ctx, msgCid)
Expand Down
2 changes: 1 addition & 1 deletion cli/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ var EvmInvokeCmd = &cli.Command{
Usage: "optionally specify the account to use for sending the exec message",
}, &cli.IntFlag{
Name: "value",
Usage: "optionally specify the value to be sent with the invokation message",
Usage: "optionally specify the value to be sent with the invocation message",
},
},
Action: func(cctx *cli.Context) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-shed/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1049,15 +1049,15 @@ func compareProposalToAllocation(prop market8.DealProposal, alloc verifreg9.Allo

proposalClientID, err := address.IDFromAddress(prop.Client)
if err != nil {
return xerrors.Errorf("couldnt get ID from address")
return xerrors.Errorf("couldn't get ID from address")
}
if proposalClientID != uint64(alloc.Client) {
return xerrors.Errorf("client id mismatch between proposal and allocation: %v, %v", proposalClientID, alloc.Client)
}

proposalProviderID, err := address.IDFromAddress(prop.Provider)
if err != nil {
return xerrors.Errorf("couldnt get ID from address")
return xerrors.Errorf("couldn't get ID from address")
}
if proposalProviderID != uint64(alloc.Provider) {
return xerrors.Errorf("provider id mismatch between proposal and allocation: %v, %v", proposalProviderID, alloc.Provider)
Expand Down
2 changes: 1 addition & 1 deletion documentation/en/cli-lotus.md
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ USAGE:

OPTIONS:
--from value optionally specify the account to use for sending the exec message
--value value optionally specify the value to be sent with the invokation message (default: 0)
--value value optionally specify the value to be sent with the invocation message (default: 0)
--help, -h show help
```

Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/fsm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func TestCreationTimeCleared(t *testing.T) {
m.planSingle(SectorPieceAdded{})
require.Equal(m.t, m.state.State, SnapDealsWaitDeals)

// abort shoult clean up CreationTime
// abort should clean up CreationTime
m.planSingle(SectorAbortUpgrade{})
require.Equal(m.t, m.state.State, AbortUpgrade)

Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (m *Sealing) sectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPiec

ts, err := m.Api.ChainHead(ctx)
if err != nil {
return api.SectorOffset{}, xerrors.Errorf("couldnt get chain head: %w", err)
return api.SectorOffset{}, xerrors.Errorf("couldn't get chain head: %w", err)
}

nv, err := m.Api.StateNetworkVersion(ctx, types.EmptyTSK)
Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/upgrade_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (m *Sealing) MarkForUpgrade(ctx context.Context, id abi.SectorNumber) error

ts, err := m.Api.ChainHead(ctx)
if err != nil {
return xerrors.Errorf("couldnt get chain head: %w", err)
return xerrors.Errorf("couldn't get chain head: %w", err)
}
onChainInfo, err := m.Api.StateSectorGetInfo(ctx, m.maddr, id, ts.Key())
if err != nil {
Expand Down
Loading