Skip to content

Commit cee77aa

Browse files
committed
chore: remove duplicate words in strings and comments
1 parent aa76a45 commit cee77aa

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

api/api_full.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ type FullNode interface {
335335
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
336336
// WalletDefaultAddress returns the address marked as default in the wallet.
337337
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
338-
// WalletSetDefault marks the given address as as the default one.
338+
// WalletSetDefault marks the given address as the default one.
339339
WalletSetDefault(context.Context, address.Address) error //perm:write
340340
// WalletExport returns the private key of an address in the wallet.
341341
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin

api/v0api/full.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ type FullNode interface {
293293
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
294294
// WalletDefaultAddress returns the address marked as default in the wallet.
295295
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
296-
// WalletSetDefault marks the given address as as the default one.
296+
// WalletSetDefault marks the given address as the default one.
297297
WalletSetDefault(context.Context, address.Address) error //perm:write
298298
// WalletExport returns the private key of an address in the wallet.
299299
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin

build/builtin_actors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ func readEmbeddedBuiltinActorsMetadata(bundle string) ([]*BuiltinActorsMetadata,
145145
)
146146

147147
if !strings.HasPrefix(bundle, "v") {
148-
return nil, xerrors.Errorf("bundle bundle '%q' doesn't start with a 'v'", bundle)
148+
return nil, xerrors.Errorf("bundle '%q' doesn't start with a 'v'", bundle)
149149
}
150150
if !strings.HasSuffix(bundle, archiveExt) {
151-
return nil, xerrors.Errorf("bundle bundle '%q' doesn't end with '%s'", bundle, archiveExt)
151+
return nil, xerrors.Errorf("bundle '%q' doesn't end with '%s'", bundle, archiveExt)
152152
}
153153
version, err := strconv.ParseInt(bundle[1:len(bundle)-len(archiveExt)], 10, 0)
154154
if err != nil {

build/openrpc/full.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26382,7 +26382,7 @@
2638226382
{
2638326383
"name": "Filecoin.WalletSetDefault",
2638426384
"description": "```go\nfunc (s *FullNodeStruct) WalletSetDefault(p0 context.Context, p1 address.Address) error {\n\tif s.Internal.WalletSetDefault == nil {\n\t\treturn ErrNotSupported\n\t}\n\treturn s.Internal.WalletSetDefault(p0, p1)\n}\n```",
26385-
"summary": "WalletSetDefault marks the given address as as the default one.\n",
26385+
"summary": "WalletSetDefault marks the given address as the default one.\n",
2638626386
"paramStructure": "by-position",
2638726387
"params": [
2638826388
{

chain/events/filter/index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (ei *EventIndex) CollectEvents(ctx context.Context, te *TipSetEvents, rever
478478
// rollback the transaction (a no-op if the transaction was already committed)
479479
defer func() { _ = tx.Rollback() }()
480480

481-
// lets handle the revert case first, since its simpler and we can simply mark all events events in this tipset as reverted and return
481+
// lets handle the revert case first, since its simpler and we can simply mark all events in this tipset as reverted and return
482482
if revert {
483483
_, err = tx.Stmt(ei.stmtRevertEventsInTipset).Exec(te.msgTs.Height(), te.msgTs.Key().Bytes())
484484
if err != nil {

chain/messagepool/selection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ tailLoop:
400400
continue tailLoop
401401
}
402402

403-
// the merge loop ended after processing all the chains and we we probably have still
403+
// the merge loop ended after processing all the chains and we probably have still
404404
// gas to spare; end the loop.
405405
break
406406
}

chain/store/checkpoint_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestChainCheckpoint(t *testing.T) {
5252
head = cs.GetHeaviestTipSet()
5353
require.True(t, head.Equals(checkpoint))
5454

55-
// Let the second miner miner mine a fork
55+
// Let the second miner mine a fork
5656
last = checkpointParents
5757
for i := 0; i < 4; i++ {
5858
ts, err := cg.NextTipSetFromMiners(last, cg.Miners[1:], 0)

documentation/en/api-v0-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7594,7 +7594,7 @@ Inputs:
75947594
Response: `"f01234"`
75957595

75967596
### WalletSetDefault
7597-
WalletSetDefault marks the given address as as the default one.
7597+
WalletSetDefault marks the given address as the default one.
75987598

75997599

76007600
Perms: write

documentation/en/api-v1-unstable-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9284,7 +9284,7 @@ Inputs:
92849284
Response: `"f01234"`
92859285

92869286
### WalletSetDefault
9287-
WalletSetDefault marks the given address as as the default one.
9287+
WalletSetDefault marks the given address as the default one.
92889288

92899289

92909290
Perms: write

journal/alerting/alerts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (a *Alerting) update(at AlertType, message interface{}, upd func(Alert, jso
9595
}{
9696
AlertError: err.Error(),
9797
})
98-
log.Errorw("marshaling marshaling error failed", "type", at, "error", err)
98+
log.Errorw("marshaling error failed", "type", at, "error", err)
9999
}
100100

101101
a.alerts[at] = upd(alert, rawMsg)

metrics/metrics.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ var (
190190
RcmgrAllowPeer = stats.Int64("rcmgr/allow_peer", "Number of allowed peer connections", stats.UnitDimensionless)
191191
RcmgrBlockPeer = stats.Int64("rcmgr/block_peer", "Number of blocked peer connections", stats.UnitDimensionless)
192192
RcmgrAllowProto = stats.Int64("rcmgr/allow_proto", "Number of allowed streams attached to a protocol", stats.UnitDimensionless)
193-
RcmgrBlockProto = stats.Int64("rcmgr/block_proto", "Number of blocked blocked streams attached to a protocol", stats.UnitDimensionless)
194-
RcmgrBlockProtoPeer = stats.Int64("rcmgr/block_proto", "Number of blocked blocked streams attached to a protocol for a specific peer", stats.UnitDimensionless)
193+
RcmgrBlockProto = stats.Int64("rcmgr/block_proto", "Number of blocked streams attached to a protocol", stats.UnitDimensionless)
194+
RcmgrBlockProtoPeer = stats.Int64("rcmgr/block_proto", "Number of blocked streams attached to a protocol for a specific peer", stats.UnitDimensionless)
195195
RcmgrAllowSvc = stats.Int64("rcmgr/allow_svc", "Number of allowed streams attached to a service", stats.UnitDimensionless)
196-
RcmgrBlockSvc = stats.Int64("rcmgr/block_svc", "Number of blocked blocked streams attached to a service", stats.UnitDimensionless)
197-
RcmgrBlockSvcPeer = stats.Int64("rcmgr/block_svc", "Number of blocked blocked streams attached to a service for a specific peer", stats.UnitDimensionless)
196+
RcmgrBlockSvc = stats.Int64("rcmgr/block_svc", "Number of blocked streams attached to a service", stats.UnitDimensionless)
197+
RcmgrBlockSvcPeer = stats.Int64("rcmgr/block_svc", "Number of blocked streams attached to a service for a specific peer", stats.UnitDimensionless)
198198
RcmgrAllowMem = stats.Int64("rcmgr/allow_mem", "Number of allowed memory reservations", stats.UnitDimensionless)
199199
RcmgrBlockMem = stats.Int64("rcmgr/block_mem", "Number of blocked memory reservations", stats.UnitDimensionless)
200200

0 commit comments

Comments
 (0)