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: remove duplicate words #6368

Merged
merged 1 commit into from
Jun 28, 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
4 changes: 2 additions & 2 deletions pkg/events/filter/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func NewEventIndex(ctx context.Context, path string, chainStore *chain.Store) (*
return nil, fmt.Errorf("could not migrate sql data to version 2: %w", err)
}

// to upgrade to version version 2 we only need to create an index on the event table
// to upgrade to version 2 we only need to create an index on the event table
// which means we can just recreate the schema (it will not have any effect on existing data)
for _, ddl := range ddls {
if _, err := db.Exec(ddl); err != nil {
Expand Down Expand Up @@ -354,7 +354,7 @@ func (ei *EventIndex) CollectEvents(ctx context.Context, te *TipSetEvents, rever
// rollback the transaction (a no-op if the transaction was already committed)
defer tx.Rollback() //nolint:errcheck

// lets handle the revert case first, since its simpler and we can simply mark all events events in this tipset as reverted and return
// lets handle the revert case first, since its simpler and we can simply mark all events in this tipset as reverted and return
if revert {
_, err = tx.Stmt(ei.stmtRevertEventsInTipset).Exec(te.msgTS.Height(), te.msgTS.Key().Bytes())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ func (mp *MessagePool) Updates(ctx context.Context) (<-chan types.MpoolUpdate, e

func (mp *MessagePool) loadLocal(ctx context.Context) error {
if val := os.Getenv("VENUS_DISABLE_LOCAL_MESSAGE"); val != "" {
log.Warnf("receive environment to disable local local message")
log.Warnf("receive environment to disable local message")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/messagepool/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ tailLoop:
continue tailLoop
}

// the merge loop ended after processing all the chains and we we probably have still
// the merge loop ended after processing all the chains and we probably have still
// gas to spare; end the loop.
break
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Abort(code exitcode.ExitCode) {
panic(ExecutionPanic{code: code})
}

// Abortf will stop the LegacyVM execution and return an the error to the caller.
// Abortf will stop the LegacyVM execution and return an error to the caller.
func Abortf(code exitcode.ExitCode, msg string, args ...interface{}) {
panic(ExecutionPanic{code: code, msg: fmt.Sprintf(msg, args...)})
}
2 changes: 1 addition & 1 deletion pkg/wallet/dsbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (backend *DSBackend) GetKeyInfo(ctx context.Context, addr address.Address)
return key.KeyInfo, nil
}

// GetKeyInfoPassphrase get private private key from wallet, get encrypt byte from db and decrypto it with password
// GetKeyInfoPassphrase get private key from wallet, get encrypt byte from db and decrypto it with password
func (backend *DSBackend) GetKeyInfoPassphrase(ctx context.Context, addr address.Address, password []byte) (*key.KeyInfo, error) {
if !backend.HasAddress(ctx, addr) {
return nil, errors.New("backend does not contain address")
Expand Down
2 changes: 1 addition & 1 deletion pkg/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (w *Wallet) DSBacked() (*DSBackend, error) {
return (backends[0]).(*DSBackend), nil
}

// LockWallet lock lock wallet
// LockWallet locks wallet
func (w *Wallet) LockWallet(ctx context.Context) error {
backend, err := w.DSBacked()
if err != nil {
Expand Down
Loading