github.com/qjfoidnh/BaiduPCS-Go@v0.0.0-20231011165705-caa18a3765f3/internal/pcsfunctions/common.go (about) 1 package pcsfunctions 2 3 import "time" 4 5 // RetryWait 失败重试等待事件 6 func RetryWait(retry int) time.Duration { 7 if retry < 3 { 8 return 2 * time.Duration(retry) * time.Second 9 } 10 return 6 * time.Second 11 }