Skip to content

Commit c4e907c

Browse files
authored
Merge pull request #6513 from knagy2/spelling
Fix typos and grammar errors in comments
2 parents e719699 + 58466a4 commit c4e907c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

app/node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (node *Node) RunRPCAndWait(ctx context.Context, rootCmdDaemon *cmds.Command
326326

327327
terminate := make(chan error, 1)
328328

329-
// todo: design an genterfull
329+
// todo: design a graceful
330330
memguard.CatchSignal(func(signal os.Signal) {
331331
log.Infof("received signal(%s), venus will shutdown...", signal.String())
332332
log.Infof("shutting down server...")

app/submodule/mpool/mpool_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (a *MessagePoolAPI) MpoolPushMessage(ctx context.Context, msg *types.Messag
258258
})
259259
}
260260

261-
// MpoolBatchPush batch pushes a unsigned message to mempool.
261+
// MpoolBatchPush batch pushes an unsigned message to mempool.
262262
func (a *MessagePoolAPI) MpoolBatchPush(ctx context.Context, smsgs []*types.SignedMessage) ([]cid.Cid, error) {
263263
var messageCids []cid.Cid
264264
for _, smsg := range smsgs {
@@ -292,7 +292,7 @@ func (a *MessagePoolAPI) MpoolBatchPushUntrusted(ctx context.Context, smsgs []*t
292292
return messageCids, nil
293293
}
294294

295-
// MpoolBatchPushMessage batch pushes a unsigned message to mempool.
295+
// MpoolBatchPushMessage batch pushes an unsigned message to mempool.
296296
func (a *MessagePoolAPI) MpoolBatchPushMessage(ctx context.Context, msgs []*types.Message, spec *types.MessageSendSpec) ([]*types.SignedMessage, error) {
297297
var smsgs []*types.SignedMessage
298298
for _, msg := range msgs {

cmd/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func importChain(ctx context.Context, r repo.Repo, network string, fname string)
6363
}
6464

6565
bs := r.Datastore()
66-
// setup a ipldCbor on top of the local store
66+
// setup an ipldCbor on top of the local store
6767
chainStore := chain.NewStore(r.ChainDatastore(), bs, cid.Undef, chainselector.Weight)
6868

6969
bufr := bufio.NewReaderSize(rd, 1<<20)

pkg/chain/randomness.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (c *ChainRandomnessSource) GetBeaconRandomnessTipset(ctx context.Context, r
119119
// If `head` is empty (as when processing the pre-genesis state or the genesis block), the seed derived from
120120
// a fixed genesis ticket.
121121
// Note that this may produce the same value for different, neighbouring epochs when the epoch references a round
122-
// in which no blocks were produced (an empty tipset or "null block"). A caller desiring a unique see for each epoch
122+
// in which no blocks were produced (an empty tipset or "null block"). A caller desiring a unique seed for each epoch
123123
// should blend in some distinguishing value (such as the epoch itself) into a hash of this ticket.
124124
func (c *ChainRandomnessSource) getChainRandomness(ctx context.Context, epoch abi.ChainEpoch, lookback bool) (types.Ticket, error) {
125125
if !c.head.IsEmpty() {

pkg/util/ffiwrapper/impl/partialfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const veryLargeRle = 1 << 20
2323
// in a sector are unsealed, and which are not (holes)
2424

2525
// unsealed sector files internally have this structure
26-
// [unpadded (raw) data][rle+][4B LE length fo the rle+ field]
26+
// [unpadded (raw) data][rle+][4B LE length of the rle+ field]
2727

2828
type partialFile struct {
2929
maxPiece abi.PaddedPieceSize

venus-shared/types/wallet/sign_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func GetSignBytesAndObj(toSign []byte, meta types.MsgMeta) (interface{}, []byte,
224224
func CborDecodeInto(r []byte, v interface{}) error {
225225
unmarshaler, isOk := v.(cbor.Unmarshaler)
226226
if !isOk {
227-
return fmt.Errorf("not an 'unmarhsaler'")
227+
return fmt.Errorf("not an 'unmarshaler'")
228228
}
229229
if err := unmarshaler.UnmarshalCBOR(bytes.NewReader(r)); err != nil {
230230
return fmt.Errorf("cbor unmarshal:%w", err)

0 commit comments

Comments
 (0)