Skip to content

Commit

Permalink
change createDB to create_db
Browse files Browse the repository at this point in the history
  • Loading branch information
econsta committed Oct 16, 2023
1 parent f4e5060 commit f8e513d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/db/src/db_macro.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[macro_export]
macro_rules! createDb {
macro_rules! create_db {
($db_name: ident
{ $($field_name: ident: $field_type: ty),*}
) => {
Expand Down
2 changes: 1 addition & 1 deletion processor/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub use serai_db::*;

use crate::networks::{Block, Network};

createDb!(
create_db!(
MainDb {
HandledMessageDb: Vec<u8>,
PendingActivationsDb: Vec<u8>
Expand Down
4 changes: 2 additions & 2 deletions processor/src/key_gen.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::HashMap;

use serai_db::createDb;
use serai_db::create_db;
use zeroize::Zeroizing;

use rand_core::SeedableRng;
Expand All @@ -27,7 +27,7 @@ pub struct KeyConfirmed<C: Ciphersuite> {
pub network_keys: ThresholdKeys<C>,
}

createDb!(
create_db!(
KeyGenDb {
ParamsDb: ThresholdParams,
CommitmentsDb: HashMap<Participant, Vec<u8>>,
Expand Down

0 comments on commit f8e513d

Please sign in to comment.