diff --git a/server-api/db/src/common.rs b/server-api/db/src/common.rs index dc6a620..1d319f7 100644 --- a/server-api/db/src/common.rs +++ b/server-api/db/src/common.rs @@ -4,7 +4,12 @@ use async_trait::async_trait; use crate::Response; use crate::UBigInt; -pub const NO_CONN_MSG: &'static str = "No connection could be established"; +#[macro_export] +macro_rules! no_conn { + ($spec:literal) => { + format!("No connection could be established: {}", $spec) + } +} /* * NOTE: pay attention to work on async in traits for rust diff --git a/server-api/db/src/lib.rs b/server-api/db/src/lib.rs index a67becb..759fde4 100644 --- a/server-api/db/src/lib.rs +++ b/server-api/db/src/lib.rs @@ -1,6 +1,7 @@ mod member; mod common; mod invites; +mod channels; use std::vec::Vec;