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() {
|
func Cache() {
|
||||||
CacheURL = CacheURL[:0]
|
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()
|
results, err := mongo.GetAll()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue