cave/store: stop pinging redis so much

This commit is contained in:
Astro 2023-10-09 02:11:51 +02:00
parent 7df2f259d3
commit 9f0829f022
1 changed files with 2 additions and 4 deletions

View File

@ -48,7 +48,7 @@ impl ManageConnection for RedisPool {
fn is_valid<'life0, 'life1, 'async_trait>( fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self, &'life0 self,
conn: &'life1 mut Self::Connection _conn: &'life1 mut Self::Connection
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where where
'life0: 'async_trait, 'life0: 'async_trait,
@ -56,9 +56,7 @@ impl ManageConnection for RedisPool {
Self: 'async_trait Self: 'async_trait
{ {
Box::pin(async { Box::pin(async {
redis::cmd("PING") Ok(())
.query_async::<_, ()>(conn)
.await
}) })
} }