1 Commits

Author SHA1 Message Date
e30c25b198 fix: increate retry attemps of caldav init 2022-09-28 09:11:16 +02:00

View File

@ -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)