Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix function names in comment #2957

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading