fix: increate retry attemps of caldav init
This commit is contained in:
parent
b8fde634b5
commit
e30c25b198
@ -43,8 +43,9 @@ func NewCaldav(caldavUrl, caldavPath string) (Caldav, error) {
|
||||
zap.S().Errorf("unable to validate caldav connection on retry %d: %v", n, err)
|
||||
},
|
||||
),
|
||||
retry.Attempts(0), // Infinite attempts
|
||||
retry.Attempts(1000),
|
||||
retry.DelayType(retry.BackOffDelay),
|
||||
retry.MaxDelay(24*time.Hour),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to validate caldav connection: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user