fix: increase base delay for retries in GetAnnunciFromMiogest to improve stability
This commit is contained in:
parent
10c7581d2d
commit
352c31d03a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ func (m *MiogestHandler) GetAnnunci() typesdefs.AnnunciXML {
|
||||||
|
|
||||||
func (m *MiogestHandler) GetAnnunciFromMiogest() {
|
func (m *MiogestHandler) GetAnnunciFromMiogest() {
|
||||||
maxRetries := 3
|
maxRetries := 3
|
||||||
baseDelay := 2 * time.Second
|
baseDelay := 30 * time.Second
|
||||||
|
|
||||||
for attempt := 0; attempt < maxRetries; attempt++ {
|
for attempt := 0; attempt < maxRetries; attempt++ {
|
||||||
var err error
|
var err error
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue