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 some comments for struct field #3194

Merged
merged 1 commit into from
Jul 16, 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 snow/validators/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type Manager interface {
// If the validator doesn't exist, returns false.
GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*Validator, bool)

// GetValidatoIDs returns the validator IDs in the subnet.
// GetValidatorIDs returns the validator IDs in the subnet.
GetValidatorIDs(subnetID ids.ID) []ids.NodeID

// SubsetWeight returns the sum of the weights of the validators in the subnet.
Expand Down
8 changes: 4 additions & 4 deletions utils/logging/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ type Factory interface {
// MakeChain creates a new logger to log the events of chain [chainID]
MakeChain(chainID string) (Logger, error)

// SetLogLevels sets log levels for all loggers in factory with given logger name, level pairs.
// SetLogLevel sets log levels for all loggers in factory with given logger name, level pairs.
SetLogLevel(name string, level Level) error

// SetDisplayLevels sets log display levels for all loggers in factory with given logger name, level pairs.
// SetDisplayLevel sets log display levels for all loggers in factory with given logger name, level pairs.
SetDisplayLevel(name string, level Level) error

// GetLogLevels returns all log levels in factory as name, level pairs
// GetLogLevel returns all log levels in factory as name, level pairs
GetLogLevel(name string) (Level, error)

// GetDisplayLevels returns all log display levels in factory as name, level pairs
// GetDisplayLevel returns all log display levels in factory as name, level pairs
GetDisplayLevel(name string) (Level, error)

// GetLoggerNames returns the names of all logs created by this factory
Expand Down
Loading