mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Rename storage.rs to database.rs to reduce terminology variants
This commit is contained in:
parent
5ed18469e4
commit
8c7964bfee
@ -11,9 +11,9 @@ use crate::{
|
||||
},
|
||||
},
|
||||
bitcoin::EncryptedSignature,
|
||||
database::Database,
|
||||
network::request_response::AliceToBob,
|
||||
state::Swap,
|
||||
storage::Database,
|
||||
SwapAmounts,
|
||||
};
|
||||
use anyhow::Result;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::{bob::event_loop::EventLoopHandle, state, storage::Database, SwapAmounts};
|
||||
use crate::{bob::event_loop::EventLoopHandle, database::Database, state, SwapAmounts};
|
||||
use anyhow::{bail, Result};
|
||||
use async_recursion::async_recursion;
|
||||
use rand::{CryptoRng, RngCore};
|
||||
|
@ -20,10 +20,10 @@ pub mod alice;
|
||||
pub mod bitcoin;
|
||||
pub mod bob;
|
||||
pub mod cli;
|
||||
pub mod database;
|
||||
pub mod monero;
|
||||
pub mod network;
|
||||
pub mod state;
|
||||
pub mod storage;
|
||||
pub mod trace;
|
||||
|
||||
pub type Never = std::convert::Infallible;
|
||||
|
@ -25,10 +25,10 @@ use swap::{
|
||||
bitcoin, bob,
|
||||
bob::swap::BobState,
|
||||
cli::{Command, Options, Resume},
|
||||
database::Database,
|
||||
monero,
|
||||
network::transport::build,
|
||||
state::Swap,
|
||||
storage::Database,
|
||||
trace::init_tracing,
|
||||
SwapAmounts,
|
||||
};
|
||||
|
@ -2,7 +2,7 @@ use crate::testutils::{init_alice, init_bob};
|
||||
use get_port::get_port;
|
||||
use libp2p::Multiaddr;
|
||||
use rand::rngs::OsRng;
|
||||
use swap::{alice, alice::swap::AliceState, bitcoin, bob, storage::Database};
|
||||
use swap::{alice, alice::swap::AliceState, bitcoin, bob, database::Database};
|
||||
use tempfile::tempdir;
|
||||
use testcontainers::clients::Cli;
|
||||
use testutils::init_tracing;
|
||||
|
@ -2,7 +2,7 @@ use crate::testutils::{init_alice, init_bob};
|
||||
use get_port::get_port;
|
||||
use libp2p::Multiaddr;
|
||||
use rand::rngs::OsRng;
|
||||
use swap::{alice, bitcoin, bob, bob::swap::BobState, storage::Database};
|
||||
use swap::{alice, bitcoin, bob, bob::swap::BobState, database::Database};
|
||||
use tempfile::tempdir;
|
||||
use testcontainers::clients::Cli;
|
||||
use testutils::init_tracing;
|
||||
|
@ -2,7 +2,7 @@ use crate::testutils::{init_alice, init_bob};
|
||||
use get_port::get_port;
|
||||
use libp2p::Multiaddr;
|
||||
use rand::rngs::OsRng;
|
||||
use swap::{alice, alice::swap::AliceState, bitcoin, bob, bob::swap::BobState, storage::Database};
|
||||
use swap::{alice, alice::swap::AliceState, bitcoin, bob, bob::swap::BobState, database::Database};
|
||||
use tempfile::tempdir;
|
||||
use testcontainers::clients::Cli;
|
||||
use testutils::init_tracing;
|
||||
|
@ -3,7 +3,7 @@ use futures::future::try_join;
|
||||
use get_port::get_port;
|
||||
use libp2p::Multiaddr;
|
||||
use rand::rngs::OsRng;
|
||||
use swap::{alice, alice::swap::AliceState, bob, bob::swap::BobState, storage::Database};
|
||||
use swap::{alice, alice::swap::AliceState, bob, bob::swap::BobState, database::Database};
|
||||
use tempfile::tempdir;
|
||||
use testcontainers::clients::Cli;
|
||||
use testutils::init_tracing;
|
||||
|
@ -4,8 +4,8 @@ use monero_harness::{image, Monero};
|
||||
use rand::rngs::OsRng;
|
||||
use std::sync::Arc;
|
||||
use swap::{
|
||||
alice, alice::swap::AliceState, bitcoin, bob, bob::swap::BobState, monero,
|
||||
network::transport::build, storage::Database, SwapAmounts,
|
||||
alice, alice::swap::AliceState, bitcoin, bob, bob::swap::BobState, database::Database, monero,
|
||||
network::transport::build, SwapAmounts,
|
||||
};
|
||||
use tempfile::tempdir;
|
||||
use testcontainers::{clients::Cli, Container};
|
||||
|
Loading…
Reference in New Issue
Block a user