chore: format

This commit is contained in:
naskya 2024-06-06 17:10:40 +09:00
parent 40e5bf45bd
commit 308ecec341
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
3 changed files with 4 additions and 4 deletions

View file

@ -2,8 +2,8 @@
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::key as redis_key;
pub use redis::RedisConnError;
pub mod cache;

View file

@ -88,8 +88,8 @@ pub enum RedisConnError {
}
/// Returns an async [redis] connection managed by a [bb8] connection pool.
pub async fn get_conn(
) -> Result<PooledConnection<'static, RedisConnectionManager>, RedisConnError> {
pub async fn get_conn() -> Result<PooledConnection<'static, RedisConnectionManager>, RedisConnError>
{
if !CONN_POOL.initialized() {
let init_res = init_conn_pool().await;