diff --git a/cli/disputer.go b/cli/disputer.go index f6680daec66..10f58115cb8 100644 --- a/cli/disputer.go +++ b/cli/disputer.go @@ -274,7 +274,7 @@ var disputerStartCmd = &cli.Command{ if err != nil { disputeLog.Errorw("failed to dispute post message", "err", err.Error(), "miner", dpmsg.To) } else { - disputeLog.Infow("submited dispute", "mcid", m.Cid(), "miner", dpmsg.To) + disputeLog.Infow("submitted dispute", "mcid", m.Cid(), "miner", dpmsg.To) } } diff --git a/cmd/lotus-bench/rpc.go b/cmd/lotus-bench/rpc.go index 547d6fb4925..960c0ab2b5e 100644 --- a/cmd/lotus-bench/rpc.go +++ b/cmd/lotus-bench/rpc.go @@ -312,7 +312,7 @@ func (rpc *RPCMethod) startWorker(client *http.Client, qpsTicker *time.Ticker) { } else { statusCode = &resp.StatusCode - // there was not a HTTP error but we need to still check the json response for errrors + // there was not a HTTP error but we need to still check the json response for errors var data []byte data, err = io.ReadAll(resp.Body) if err != nil { diff --git a/node/modules/lp2p/discovery.go b/node/modules/lp2p/discovery.go index ca68a7b9cf5..c5af31914af 100644 --- a/node/modules/lp2p/discovery.go +++ b/node/modules/lp2p/discovery.go @@ -19,7 +19,7 @@ type discoveryHandler struct { } func (dh *discoveryHandler) HandlePeerFound(p peer.AddrInfo) { - log.Warnw("discovred peer", "peer", p) + log.Warnw("discovered peer", "peer", p) ctx, cancel := context.WithTimeout(dh.ctx, discoveryConnTimeout) defer cancel() if err := dh.host.Connect(ctx, p); err != nil { diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index f1757531a7d..82ce7c9ad2a 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -390,7 +390,7 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) { transports = append(transports, jsonTransport) } - tps := make([]string, 0) // range of topics that will be submited to the traces + tps := make([]string, 0) // range of topics that will be submitted to the traces addTopicToList := func(topicList []string, newTopic string) []string { // check if the topic is already in the list for _, tp := range topicList { diff --git a/node/repo/repo_test.go b/node/repo/repo_test.go index 35f2a70277c..356a56e92be 100644 --- a/node/repo/repo_test.go +++ b/node/repo/repo_test.go @@ -124,6 +124,6 @@ func basicTest(t *testing.T, repo Repo) { err = kstr.Delete("k2") if assert.Error(t, err) { - assert.True(t, errors.Is(err, types.ErrKeyInfoNotFound), "returned errror is ErrKeyNotFound") + assert.True(t, errors.Is(err, types.ErrKeyInfoNotFound), "returned error is ErrKeyNotFound") } }