optimise sign
This commit is contained in:
parent
58937be40e
commit
52772f1b3c
12
src/main.go
12
src/main.go
@ -165,8 +165,18 @@ func signFiles(path string) {
|
|||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
count := 0
|
||||||
|
totalCount := len(files)
|
||||||
|
filePath := ""
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
signQueue <- path + file
|
totalCount--
|
||||||
|
if count < 100 && totalCount > 0 {
|
||||||
|
count++
|
||||||
|
filePath = path + " " + path + file
|
||||||
|
} else {
|
||||||
|
count = 0
|
||||||
|
signQueue <- filePath
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
close(signQueue)
|
close(signQueue)
|
||||||
|
Loading…
Reference in New Issue
Block a user