Skip to content

Commit a9b54da

Browse files
authored
Merge pull request #6503 from vastonus/master
chore: fix a large number of spelling issues in comments
2 parents aaa4923 + d1b3eb7 commit a9b54da

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

app/node/inspector_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type MemoryInfo struct {
7575
Virtual uint64
7676
}
7777

78-
// Runtime returns infrormation about the golang runtime.
78+
// Runtime returns information about the golang runtime.
7979
func (g *inspector) Runtime() *RuntimeInfo {
8080
return &RuntimeInfo{
8181
OS: runtime.GOOS,

pkg/chain/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func NewStore(chainDs repo.Datastore,
195195
// then Load could be tricked into loading an invalid chain. Load will error if the
196196
// head does not link back to the expected genesis block, or the Store's
197197
// datastore does not store a link in the chain. In case of error the caller
198-
// should not consider the chain useable and propagate the error.
198+
// should not consider the chain usable and propagate the error.
199199
func (store *Store) Load(ctx context.Context) (err error) {
200200
ctx, span := trace.StartSpan(ctx, "Store.Load")
201201
defer tracing.AddErrorEndSpan(ctx, span, &err)

pkg/chain/waiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ func (w *Waiter) receiptByIndex(ctx context.Context, ts *types.TipSet, targetCid
332332

333333
receiptIndex := 0
334334
for _, blkInfo := range blockMsgs {
335-
// todo aggrate bls and secp msg to one msg
335+
// todo: aggregate bls and secp msg to one msg
336336
for _, msg := range append(blkInfo.BlsMessages, blkInfo.SecpkMessages...) {
337337
if msg.Cid().Equals(targetCid) {
338338
if receiptIndex >= len(receipts) {

pkg/journal/testing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type entry struct {
4040
kvs []interface{}
4141
}
4242

43-
// MemoryWriter writes journal entires in memory.
43+
// MemoryWriter writes journal entries in memory.
4444
type MemoryWriter struct {
4545
topic string
4646
journal *MemoryJournal

pkg/messagepool/selection_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ func TestOptimalMessageSelection1(t *testing.T) {
967967
tf.UnitTest(t)
968968

969969
// this test uses just a single actor sending messages with a low tq
970-
// the chain depenent merging algorithm should pick messages from the actor
970+
// the chain dependent merging algorithm should pick messages from the actor
971971
// from the start
972972
mp, tma := makeTestMpool()
973973

@@ -1028,7 +1028,7 @@ func TestOptimalMessageSelection2(t *testing.T) {
10281028

10291029
// this test uses two actors sending messages to each other, with the first
10301030
// actor paying (much) higher gas premium than the second.
1031-
// We select with a low ticket quality; the chain depenent merging algorithm should pick
1031+
// We select with a low ticket quality; the chain dependent merging algorithm should pick
10321032
// messages from the second actor from the start
10331033
mp, tma := makeTestMpool()
10341034

@@ -1101,7 +1101,7 @@ func TestOptimalMessageSelection3(t *testing.T) {
11011101

11021102
// this test uses 10 actors sending a block of messages to each other, with the first
11031103
// actors paying higher gas premium than the subsequent actors.
1104-
// We select with a low ticket quality; the chain depenent merging algorithm should pick
1104+
// We select with a low ticket quality; the chain dependent merging algorithm should pick
11051105
// messages from the median actor from the start
11061106
mp, tma := makeTestMpool()
11071107

pkg/statemanger/state_manger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (s *Stmgr) RunStateTransition(ctx context.Context, ts *types.TipSet, cb vm.
246246
if nil != s.stopFlag(false) {
247247
return cid.Undef, cid.Undef, fmt.Errorf("state manager is stopping")
248248
}
249-
ctx, span := trace.StartSpan(ctx, "Exected.RunStateTransition")
249+
ctx, span := trace.StartSpan(ctx, "Executed.RunStateTransition")
250250
defer span.End()
251251

252252
key := ts.Key()
@@ -358,7 +358,7 @@ func (s *Stmgr) GetActorRaw(ctx context.Context, addr address.Address, stateCid
358358

359359
// deprecated: in future use.
360360
func (s *Stmgr) RunStateTransitionV2(ctx context.Context, ts *types.TipSet) (cid.Cid, cid.Cid, error) {
361-
ctx, span := trace.StartSpan(ctx, "Exected.RunStateTransition")
361+
ctx, span := trace.StartSpan(ctx, "Executed.RunStateTransition")
362362
defer span.End()
363363

364364
var state stateComputeResult

0 commit comments

Comments
 (0)