Skip to content

Commit a51e6f5

Browse files
committed
force DatabaseBackend to be Send and Sync compatible
1 parent ec01f16 commit a51e6f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/db/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct FirmwareEntry {
3939
pub restrict: Option<Vec<NodeId>>,
4040
}
4141

42-
pub trait DatabaseBackend {
42+
pub trait DatabaseBackend: Send + Sync {
4343
async fn authorize_device(&self, mac: &Mac) -> Result<Option<NodeId>, Error>;
4444

4545
async fn create_notification(&self, node_id: NodeId, content: &str) -> Result<(), Error>;

0 commit comments

Comments
 (0)