parallel hashing

This commit is contained in:
sm
2016-11-15 20:57:52 -08:00
parent f82decc6dc
commit 5e10c8f583
2 changed files with 112 additions and 56 deletions
+5 -1
View File
@@ -19,8 +19,12 @@ func main() {
files := flag.Args()
switch *mode {
case true:
if err := check(files); err != nil {
c := 0
for err := range check(files) {
c++
fmt.Fprintf(os.Stderr, "%v\n", err)
}
if c > 0 {
os.Exit(1)
}
case false: