diff --git a/common/db/src/db_macro.rs b/common/db/src/db_macro.rs index c2fc3a0a5..7a7da0491 100644 --- a/common/db/src/db_macro.rs +++ b/common/db/src/db_macro.rs @@ -1,5 +1,5 @@ #[macro_export] -macro_rules! createDb { +macro_rules! create_db { ($db_name: ident { $($field_name: ident: $field_type: ty),*} ) => { diff --git a/processor/src/db.rs b/processor/src/db.rs index 28d50d280..ac0b05101 100644 --- a/processor/src/db.rs +++ b/processor/src/db.rs @@ -6,7 +6,7 @@ pub use serai_db::*; use crate::networks::{Block, Network}; -createDb!( +create_db!( MainDb { HandledMessageDb: Vec, PendingActivationsDb: Vec diff --git a/processor/src/key_gen.rs b/processor/src/key_gen.rs index 4f07a72cb..b18a9a173 100644 --- a/processor/src/key_gen.rs +++ b/processor/src/key_gen.rs @@ -1,6 +1,6 @@ use std::collections::HashMap; -use serai_db::createDb; +use serai_db::create_db; use zeroize::Zeroizing; use rand_core::SeedableRng; @@ -27,7 +27,7 @@ pub struct KeyConfirmed { pub network_keys: ThresholdKeys, } -createDb!( +create_db!( KeyGenDb { ParamsDb: ThresholdParams, CommitmentsDb: HashMap>,