diff --git a/blockstore/badger/blockstore.go b/blockstore/badger/blockstore.go index a49e88f85a4..e6612ccf46a 100644 --- a/blockstore/badger/blockstore.go +++ b/blockstore/badger/blockstore.go @@ -1067,7 +1067,7 @@ func (b *Blockstore) PooledStorageKey(cid cid.Cid) (key []byte, pooled bool) { return k, true // slicing upto length unnecessary; the pool has already done this. } -// Storage acts like PooledStorageKey, but attempts to write the storage key +// StorageKey acts like PooledStorageKey, but attempts to write the storage key // into the provided slice. If the slice capacity is insufficient, it allocates // a new byte slice with enough capacity to accommodate the result. This method // returns the resulting slice. diff --git a/chain/beacon/mock.go b/chain/beacon/mock.go index ab6a98ebfe9..dfa036b9304 100644 --- a/chain/beacon/mock.go +++ b/chain/beacon/mock.go @@ -15,7 +15,7 @@ import ( "github.com/filecoin-project/lotus/chain/types" ) -// Mock beacon assumes that filecoin rounds are 1:1 mapped with the beacon rounds +// mockBeacon assumes that filecoin rounds are 1:1 mapped with the beacon rounds type mockBeacon struct { interval time.Duration } diff --git a/cli/util/api.go b/cli/util/api.go index 39077e98e1d..8f6b7ee1105 100644 --- a/cli/util/api.go +++ b/cli/util/api.go @@ -31,7 +31,7 @@ const ( metadataTraceContext = "traceContext" ) -// GetAPIInfo returns the API endpoint to use for the specified kind of repo. +// GetAPIInfoMulti returns the API endpoints to use for the specified kind of repo. // // The order of precedence is as follows: // diff --git a/cmd/lotus-sim/simulation/node.go b/cmd/lotus-sim/simulation/node.go index f232e0d21c0..fd9c0284614 100644 --- a/cmd/lotus-sim/simulation/node.go +++ b/cmd/lotus-sim/simulation/node.go @@ -114,7 +114,7 @@ func (nd *Node) LoadSim(ctx context.Context, name string) (*Simulation, error) { return sim, nil } -// Create creates a new simulation. +// CreateSim creates a new simulation. // // - This will fail if a simulation already exists with the given name. // - Num must not contain a '/'. diff --git a/node/builder.go b/node/builder.go index 0bdb1fab223..ee501bf54c9 100644 --- a/node/builder.go +++ b/node/builder.go @@ -261,7 +261,7 @@ func Base() Option { ) } -// Config sets up constructors based on the provided Config +// ConfigCommon sets up constructors based on the provided Config func ConfigCommon(cfg *config.Common, buildVersion build.BuildVersion, enableLibp2pNode bool) Option { // setup logging early lotuslog.SetLevelsFromConfig(cfg.Logging.SubsystemLevels)