From b27cec14113fcff4e76a6c1189555f15d3118119 Mon Sep 17 00:00:00 2001 From: TotallyNot <44345987+TotallyNot@users.noreply.github.com> Date: Mon, 5 Sep 2022 01:42:14 +0200 Subject: [PATCH] fixed retry condition --- torn-key-pool/Cargo.toml | 2 +- torn-key-pool/src/postgres.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/torn-key-pool/Cargo.toml b/torn-key-pool/Cargo.toml index 7a30c47..fc3cba9 100644 --- a/torn-key-pool/Cargo.toml +++ b/torn-key-pool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-key-pool" -version = "0.2.0" +version = "0.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/torn-key-pool/src/postgres.rs b/torn-key-pool/src/postgres.rs index 90be3c3..9d56909 100644 --- a/torn-key-pool/src/postgres.rs +++ b/torn-key-pool/src/postgres.rs @@ -127,8 +127,7 @@ impl KeyPoolStorage for PgKeyPoolStorage { .await?; Ok(true) } - 9 => Ok(false), - _ => Ok(true), + _ => Ok(false), } } }