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 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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
withFile: ps.withFile,
|
||||
notify: ps.notify,
|
||||
}).then((x) => Antennas.findOneByOrFail(x.identifiers[0]));
|
||||
|
||||
|
||||
publishInternalEvent("antennaCreated", antenna);
|
||||
await updateAntennaCache();
|
||||
|
||||
|
|
Loading…
Reference in a new issue