This commit is contained in:
aniketfuryrocks 2023-03-21 22:02:22 +05:30
parent 19ab962a14
commit ec13502428
No known key found for this signature in database
GPG Key ID: FA6BFCFAA7D4B764
1 changed files with 3 additions and 2 deletions

View File

@ -236,8 +236,9 @@ impl Postgres {
while let Some(msg) = recv.recv().await {
let Ok(session) = self.get_session().await else {
warn!("Unable to get postgres session. Retrying in 1000ms");
tokio::time::sleep(Duration::from_millis(1000));
const TIME_OUT:Duration = Duration::from_millis(1000);
warn!("Unable to get postgres session. Retrying in {TIME_OUT:?}");
tokio::time::sleep(TIME_OUT).await;
continue;
};