Browse Source

Rename bulk_load() -> bulk_index()

refactor-mempool
Roman Zeyde 6 years ago
parent
commit
baf2d8624d
No known key found for this signature in database GPG Key ID: 87CAE5FA46917CBB
  1. 4
      src/bin/electrs.rs

4
src/bin/electrs.rs

@ -14,7 +14,7 @@ use electrs::{
store::{DBStore, ReadStore, StoreOptions, WriteStore},
};
fn bulk_load(store: DBStore, daemon: &Daemon, signal: &Waiter, metrics: &Metrics) -> Result<()> {
fn bulk_index(store: DBStore, daemon: &Daemon, signal: &Waiter, metrics: &Metrics) -> Result<()> {
let key = b"F"; // full compaction marker
if store.get(key).is_some() {
return Ok(());
@ -49,7 +49,7 @@ fn run_server(config: &Config) -> Result<()> {
config.network_type,
&metrics,
)?;
bulk_load(
bulk_index(
DBStore::open(&config.db_path, StoreOptions { bulk_import: true }),
&daemon,
&signal,

Loading…
Cancel
Save