diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0f4bc07..92d8fd60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,6 @@ jobs: region: us-west-1 aws_access_key_id: "${{ secrets.aws_access_key_id }}" aws_secret_access_key: "${{ secrets.aws_secret_access_key }}" - if: github.ref == 'refs/heads/auto' conclusion: needs: [docker-upload] diff --git a/src/db/mod.rs b/src/db/mod.rs index 303e4ccb..7f0ebac6 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -39,7 +39,7 @@ impl r2d2::ManageConnection for SqliteConnectionManager { } fn has_broken(&self, conn: &mut Self::Connection) -> bool { - self.is_valid(conn).is_ok() + self.is_valid(conn).is_err() } }