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

Rename bulk_load() -> bulk_index()

This commit is contained in:
Roman Zeyde 2018-07-09 18:02:49 +03:00
parent e88f075c50
commit baf2d8624d
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -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,