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

Format using nightly rustfmt

This commit is contained in:
Roman Zeyde 2018-07-03 11:46:36 +03:00
parent 82c2caa3af
commit 130ced9ae0
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
6 changed files with 22 additions and 25 deletions

View File

@ -4,8 +4,10 @@ extern crate error_chain;
#[macro_use]
extern crate log;
use electrs::{config::Config, daemon::Daemon, errors::*, fake::FakeStore, index::Index,
metrics::Metrics, signal::Waiter};
use electrs::{
config::Config, daemon::Daemon, errors::*, fake::FakeStore, index::Index, metrics::Metrics,
signal::Waiter,
};
use error_chain::ChainedError;
fn run() -> Result<()> {

View File

@ -5,12 +5,10 @@ extern crate electrs;
extern crate log;
extern crate error_chain;
use electrs::{bulk::Parser,
config::Config,
daemon::Daemon,
errors::*,
metrics::Metrics,
store::{DBStore, StoreOptions, WriteStore}};
use electrs::{
bulk::Parser, config::Config, daemon::Daemon, errors::*, metrics::Metrics,
store::{DBStore, StoreOptions, WriteStore},
};
use error_chain::ChainedError;

View File

@ -8,17 +8,11 @@ extern crate log;
use error_chain::ChainedError;
use std::time::Duration;
use electrs::{app::App,
bulk::Parser,
config::Config,
daemon::Daemon,
errors::*,
index::Index,
metrics::Metrics,
query::Query,
rpc::RPC,
signal::Waiter,
store::{DBStore, ReadStore, StoreOptions, WriteStore}};
use electrs::{
app::App, bulk::Parser, config::Config, daemon::Daemon, errors::*, index::Index,
metrics::Metrics, query::Query, rpc::RPC, signal::Waiter,
store::{DBStore, ReadStore, StoreOptions, WriteStore},
};
fn bulk_load(store: DBStore, daemon: &Daemon, signal: &Waiter, metrics: &Metrics) -> Result<()> {
let key = b"F"; // full compaction marker

View File

@ -14,8 +14,10 @@ use daemon::Daemon;
use metrics::{Counter, Gauge, HistogramOpts, HistogramTimer, HistogramVec, MetricOpts, Metrics};
use signal::Waiter;
use store::{ReadStore, Row, WriteStore};
use util::{full_hash, hash_prefix, spawn_thread, Bytes, FullHash, HashPrefix, HeaderEntry,
HeaderList, HeaderMap, SyncChannel, HASH_PREFIX_LEN};
use util::{
full_hash, hash_prefix, spawn_thread, Bytes, FullHash, HashPrefix, HeaderEntry, HeaderList,
HeaderMap, SyncChannel, HASH_PREFIX_LEN,
};
use errors::*;

View File

@ -3,9 +3,10 @@ use std::io;
use std::net::SocketAddr;
use tiny_http;
pub use prometheus::{GaugeVec, Histogram, HistogramOpts, HistogramTimer, HistogramVec,
IntCounter as Counter, IntCounterVec as CounterVec, IntGauge as Gauge,
Opts as MetricOpts};
pub use prometheus::{
GaugeVec, Histogram, HistogramOpts, HistogramTimer, HistogramVec, IntCounter as Counter,
IntCounterVec as CounterVec, IntGauge as Gauge, Opts as MetricOpts,
};
use util::spawn_thread;