mirror of https://github.com/MedzikUser/go-pingbot
fix(cache): retry attempts from 1 to 15
This commit is contained in:
parent
e9d6197817
commit
5dd2c129cb
|
@ -12,7 +12,7 @@ var CacheURL []string
|
|||
func Cache() {
|
||||
CacheURL = CacheURL[:0]
|
||||
|
||||
err := common.Retry(1, 1*time.Second, func() error {
|
||||
err := common.Retry(15, 1*time.Second, func() error {
|
||||
results, err := mongo.GetAll()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue