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:
parent
82c2caa3af
commit
130ced9ae0
@ -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<()> {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -92,7 +92,7 @@ impl ReadStore for MempoolStore {
|
||||
}
|
||||
|
||||
struct Item {
|
||||
tx: Transaction, // stored for faster retrieval and index removal
|
||||
tx: Transaction, // stored for faster retrieval and index removal
|
||||
entry: MempoolEntry, // caches mempool fee rates
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user