Skip to content

Commit

Permalink
finish parallel rump
Browse files Browse the repository at this point in the history
  • Loading branch information
vinllen committed Jun 5, 2019
1 parent 26d2169 commit e24b6ed
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 187 deletions.
9 changes: 4 additions & 5 deletions src/redis-shake/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,13 @@ func sanitizeOptions(tp string) error {
}

if conf.Options.ScanSpecialCloud != "" && conf.Options.ScanKeyFile != "" {
return fmt.Errorf("scan.special_cloud[%v] and scan.key_file[%v] cann't be given at the same time",
return fmt.Errorf("scan.special_cloud[%v] and scan.key_file[%v] can't all be given at the same time",
conf.Options.ScanSpecialCloud, conf.Options.ScanKeyFile)
}

if (conf.Options.ScanSpecialCloud != "" || conf.Options.ScanKeyFile != "") && len(conf.Options.SourceAddressList) > 1 {
return fmt.Errorf("source address should <= 1 when scan.special_cloud[%v] or scan.key_file[%v] given",
conf.Options.ScanSpecialCloud, conf.Options.ScanKeyFile)
}
//if len(conf.Options.SourceAddressList) == 1 {
// return fmt.Errorf("source address length should == 1 when type is 'rump'")
//}
}

return nil
Expand Down
Loading

0 comments on commit e24b6ed

Please sign in to comment.