diff --git a/config/config.example.yml b/config/config.example.yml index 8a343867..4595af4b 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -33,7 +33,7 @@ db: #checkout_timeout: 5 ## Amount of retries when a connection is either lost or can't be established. - #retry_attempts: 1 + #retry_attempts: 3 ## Amount of seconds between each retry #retry_delay: 1 diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index 22aebca9..589d230e 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -223,7 +223,7 @@ struct DBConfig property max_pool_size : Int32 = 0 property max_idle_pool_size : Int32 = 1 property checkout_timeout : Int32 = 5 - property retry_attempts : Int32 = 1 + property retry_attempts : Int32 = 3 property retry_delay : Int32 = 1 end