cave/store: stop pinging redis so much
This commit is contained in:
parent
7df2f259d3
commit
9f0829f022
|
@ -48,7 +48,7 @@ impl ManageConnection for RedisPool {
|
|||
|
||||
fn is_valid<'life0, 'life1, 'async_trait>(
|
||||
&'life0 self,
|
||||
conn: &'life1 mut Self::Connection
|
||||
_conn: &'life1 mut Self::Connection
|
||||
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
|
||||
where
|
||||
'life0: 'async_trait,
|
||||
|
@ -56,9 +56,7 @@ impl ManageConnection for RedisPool {
|
|||
Self: 'async_trait
|
||||
{
|
||||
Box::pin(async {
|
||||
redis::cmd("PING")
|
||||
.query_async::<_, ()>(conn)
|
||||
.await
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue