Skip to content

Commit

Permalink
FMWK-405-node-list
Browse files Browse the repository at this point in the history
- review fixes
  • Loading branch information
filkeith committed Sep 23, 2024
1 parent 483b20d commit aaa67c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (c *BackupConfig) validate() error {

if c.AfterDigest != "" {
if c.ParallelNodes || len(c.NodeList) != 0 {
return fmt.Errorf("parallel by nodes/node liost and after digest at the same time not allowed")
return fmt.Errorf("parallel by nodes/node list and after digest at the same time not allowed")
}

if _, err := base64.StdEncoding.DecodeString(c.AfterDigest); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func splitNodes(nodes []*a.Node, numWorkers int) ([][]*a.Node, error) {
return result, nil
}

// filterNodes iterates on nodes and choose only nods that are in nodesList.
// filterNodes iterates over the nodes and selects only those nodes that are in nodesList.
// Return slice of filtered []*a.Node.
func filterNodes(nodesList []string, nodes []*a.Node) []*a.Node {
if len(nodesList) == 0 {
Expand Down

0 comments on commit aaa67c7

Please sign in to comment.