Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1163 from fenggw-fnst/work
Browse files Browse the repository at this point in the history
fix typo: fix comment for func ParseNodesString
  • Loading branch information
lowzj committed Jan 9, 2020
2 parents 7894da1 + a432eda commit b32d1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfget/config/supernode_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func ParseNodesString(value string) ([]*NodeWight, error) {
return ParseNodesSlice(strings.Split(value, ","))
}

// ParseNodesString parses the value in string slice type to []*NodeWight.
// ParseNodesSlice parses the value in string slice type to []*NodeWight.
func ParseNodesSlice(value []string) ([]*NodeWight, error) {
nodeWightSlice := make([]*NodeWight, 0)
weightKey := make([]int, 0)
Expand Down

0 comments on commit b32d1ca

Please sign in to comment.