1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Fix formatting

This commit is contained in:
Roman Zeyde 2018-07-09 17:10:24 +03:00
parent f4ac913c39
commit 4c182a0650
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
2 changed files with 12 additions and 2 deletions

View File

@ -16,7 +16,12 @@ fn run() -> Result<()> {
let metrics = Metrics::new(config.monitoring_addr);
metrics.start();
let daemon = Daemon::new(&config.daemon_dir, &config.cookie, config.network_type, &metrics)?;
let daemon = Daemon::new(
&config.daemon_dir,
&config.cookie,
config.network_type,
&metrics,
)?;
let fake_store = FakeStore {};
let index = Index::load(&fake_store, &daemon, &metrics)?;
index.update(&fake_store, &signal)?;

View File

@ -18,7 +18,12 @@ fn run(config: Config) -> Result<()> {
let metrics = Metrics::new(config.monitoring_addr);
metrics.start();
let daemon = Daemon::new(&config.daemon_dir, &config.cookie, config.network_type, &metrics)?;
let daemon = Daemon::new(
&config.daemon_dir,
&config.cookie,
config.network_type,
&metrics,
)?;
let store = DBStore::open(Path::new("./test-db"), StoreOptions { bulk_import: true });
let parser = Parser::new(&daemon, &store, &metrics)?;