mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-06 05:24:42 -04:00
Move Alice and Bob db states in separate modules
This commit is contained in:
parent
b410de01df
commit
59708c57e6
6 changed files with 273 additions and 262 deletions
|
@ -4,8 +4,13 @@ use state::Swap;
|
|||
use std::path::Path;
|
||||
use uuid::Uuid;
|
||||
|
||||
mod alice;
|
||||
mod bob;
|
||||
pub mod state;
|
||||
|
||||
pub use alice::*;
|
||||
pub use bob::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Database(sled::Db);
|
||||
|
||||
|
@ -84,9 +89,8 @@ where
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::database::state::{Alice, AliceEndState, Bob, BobEndState};
|
||||
|
||||
use super::*;
|
||||
use crate::database::{Alice, AliceEndState, Bob, BobEndState};
|
||||
|
||||
#[tokio::test]
|
||||
async fn can_write_and_read_to_multiple_keys() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue