mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-09-06 12:24:11 +08:00
cmd/transfer: higher worker transfer error
This commit is contained in:
parent
a606897f71
commit
ee1b0e183f
1 changed files with 7 additions and 2 deletions
|
@ -63,6 +63,13 @@ var (
|
|||
Short: "transfer bashhub history ",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Flags().Parse(args)
|
||||
if workers > 10 && srcURL == "https://bashhub.com" {
|
||||
msg := fmt.Sprintf(`
|
||||
WARNING: errors are likely to occur when setting workers higher
|
||||
than 10 when transferring from https://bashhub.com`)
|
||||
fmt.Print(msg, "\n\n")
|
||||
}
|
||||
|
||||
sysRegistered = false
|
||||
srcToken = getToken(srcURL, srcUser, srcPass)
|
||||
sysRegistered = false
|
||||
|
@ -75,8 +82,6 @@ var (
|
|||
}
|
||||
client := &http.Client{}
|
||||
for _, v := range cmdList {
|
||||
//commandLookup(v.UUID, client)
|
||||
//}
|
||||
wg.Add(1)
|
||||
counter++
|
||||
go func(c cList) {
|
||||
|
|
Loading…
Add table
Reference in a new issue