Skip to content

Commit

Permalink
chore: fix function names in comments (#2957)
Browse files Browse the repository at this point in the history
Signed-off-by: socialsister <seekseat@qq.com>
  • Loading branch information
socialsister authored Apr 22, 2024
1 parent 52dd10f commit 337dfa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/admin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ type GetLoggerLevelArgs struct {
LoggerName string `json:"loggerName"`
}

// GetLogLevel returns the log level and display level of all loggers.
// GetLoggerLevel returns the log level and display level of all loggers.
func (a *Admin) GetLoggerLevel(_ *http.Request, args *GetLoggerLevelArgs, reply *LoggerLevelReply) error {
a.Log.Debug("API called",
zap.String("service", "admin"),
Expand Down
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ func getChainConfigs(v *viper.Viper) (map[string]chains.ChainConfig, error) {
return getChainConfigsFromDir(v)
}

// ReadsChainConfigs reads chain config files from static directories and returns map with contents,
// readChainConfigPath reads chain config files from static directories and returns map with contents,
// if successful.
func readChainConfigPath(chainConfigPath string) (map[string]chains.ChainConfig, error) {
chainDirs, err := filepath.Glob(filepath.Join(chainConfigPath, "*"))
Expand Down Expand Up @@ -987,7 +987,7 @@ func readChainConfigPath(chainConfigPath string) (map[string]chains.ChainConfig,
return chainConfigMap, nil
}

// getSubnetConfigsFromFlags reads subnet configs from the correct place
// getSubnetConfigs reads subnet configs from the correct place
// (flag or file) and returns a non-nil map.
func getSubnetConfigs(v *viper.Viper, subnetIDs []ids.ID) (map[ids.ID]subnets.Config, error) {
if v.IsSet(SubnetConfigContentKey) {
Expand Down
2 changes: 1 addition & 1 deletion database/test_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func TestBatchDelete(t *testing.T, db Database) {
require.NoError(db.Delete(key))
}

// TestMemorySafetyDatabase ensures it is safe to modify a key after passing it
// TestMemorySafetyBatch ensures it is safe to modify a key after passing it
// to Batch.Put.
func TestMemorySafetyBatch(t *testing.T, db Database) {
require := require.New(t)
Expand Down

0 comments on commit 337dfa5

Please sign in to comment.