Rename storage.rs to database.rs to reduce terminology variants

This commit is contained in:
Franck Royer 2020-12-23 15:17:27 +11:00
parent 5ed18469e4
commit 8c7964bfee
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
10 changed files with 10 additions and 10 deletions

View File

@ -11,9 +11,9 @@ use crate::{
},
},
bitcoin::EncryptedSignature,
database::Database,
network::request_response::AliceToBob,
state::Swap,
storage::Database,
SwapAmounts,
};
use anyhow::Result;

View File

@ -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};

View File

@ -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;

View File

@ -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,
};

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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};