chore: format
This commit is contained in:
parent
40e5bf45bd
commit
308ecec341
3 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
pub use postgresql::get_conn as db_conn;
|
pub use postgresql::get_conn as db_conn;
|
||||||
|
|
||||||
pub use redis::key as redis_key;
|
|
||||||
pub use redis::get_conn as redis_conn;
|
pub use redis::get_conn as redis_conn;
|
||||||
|
pub use redis::key as redis_key;
|
||||||
pub use redis::RedisConnError;
|
pub use redis::RedisConnError;
|
||||||
|
|
||||||
pub mod cache;
|
pub mod cache;
|
||||||
|
|
|
@ -88,8 +88,8 @@ pub enum RedisConnError {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns an async [redis] connection managed by a [bb8] connection pool.
|
/// Returns an async [redis] connection managed by a [bb8] connection pool.
|
||||||
pub async fn get_conn(
|
pub async fn get_conn() -> Result<PooledConnection<'static, RedisConnectionManager>, RedisConnError>
|
||||||
) -> Result<PooledConnection<'static, RedisConnectionManager>, RedisConnError> {
|
{
|
||||||
if !CONN_POOL.initialized() {
|
if !CONN_POOL.initialized() {
|
||||||
let init_res = init_conn_pool().await;
|
let init_res = init_conn_pool().await;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue