fix: increate retry attemps of caldav init

This commit is contained in:
Cyrille Nofficial 2022-09-28 09:11:16 +02:00
parent b8fde634b5
commit e30c25b198

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) 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.DelayType(retry.BackOffDelay),
retry.MaxDelay(24*time.Hour),
) )
if err != nil { if err != nil {
return nil, fmt.Errorf("unable to validate caldav connection: %w", err) return nil, fmt.Errorf("unable to validate caldav connection: %w", err)