optimise sign

This commit is contained in:
ferrreo 2023-09-05 12:24:52 +01:00
parent 58937be40e
commit 52772f1b3c
2 changed files with 11 additions and 1 deletions

BIN
ppp

Binary file not shown.

View File

@ -165,8 +165,18 @@ func signFiles(path string) {
}()
}
count := 0
totalCount := len(files)
filePath := ""
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)