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 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;

View file

@ -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;

View file

@ -171,7 +171,7 @@ export default define(meta, paramDef, async (ps, user) => {
withFile: ps.withFile, withFile: ps.withFile,
notify: ps.notify, notify: ps.notify,
}).then((x) => Antennas.findOneByOrFail(x.identifiers[0])); }).then((x) => Antennas.findOneByOrFail(x.identifiers[0]));
publishInternalEvent("antennaCreated", antenna); publishInternalEvent("antennaCreated", antenna);
await updateAntennaCache(); await updateAntennaCache();