mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-06 13:34:38 -04:00
Move state.rs under database module
The types in state are only used for the database
This commit is contained in:
parent
8c7964bfee
commit
b410de01df
8 changed files with 26 additions and 22 deletions
|
@ -1,9 +1,11 @@
|
|||
use crate::state::Swap;
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use state::Swap;
|
||||
use std::path::Path;
|
||||
use uuid::Uuid;
|
||||
|
||||
pub mod state;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Database(sled::Db);
|
||||
|
||||
|
@ -82,7 +84,7 @@ where
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::state::{Alice, AliceEndState, Bob, BobEndState};
|
||||
use crate::database::state::{Alice, AliceEndState, Bob, BobEndState};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue