mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-19 23:46:01 -04:00
Revert database changes, accidentally committed
This commit is contained in:
parent
a8d25aa62d
commit
9a80dbb514
@ -18,7 +18,6 @@ use prettytable::{row, Table};
|
||||
use rand::rngs::OsRng;
|
||||
use std::{
|
||||
sync::Arc,
|
||||
time::{SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
use swap::{
|
||||
@ -48,18 +47,11 @@ extern crate prettytable;
|
||||
async fn main() -> Result<()> {
|
||||
init_tracing(LevelFilter::Trace).expect("initialize tracing");
|
||||
|
||||
let now = SystemTime::now();
|
||||
let timestamp = now
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.expect("time to move forward");
|
||||
|
||||
let opt = Options::from_args();
|
||||
|
||||
// This currently creates the directory if it's not there in the first place
|
||||
let db = Database::open(std::path::Path::new(&format!(
|
||||
"./.swap-db/{}/",
|
||||
timestamp.as_millis()
|
||||
)))
|
||||
.unwrap();
|
||||
let db = Database::open(std::path::Path::new("./.swap-db/")).unwrap();
|
||||
|
||||
let rng = &mut OsRng;
|
||||
|
||||
match opt {
|
||||
|
Loading…
x
Reference in New Issue
Block a user