1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 15:02:21 +01:00

Don't buffer indexed rows between threads

This commit is contained in:
Roman Zeyde 2018-06-28 14:11:46 +03:00
parent fd16082925
commit 2e81731e8b
No known key found for this signature in database
GPG key ID: 87CAE5FA46917CBB

View file

@ -81,7 +81,7 @@ impl Parser {
"{} blocks are already indexed",
self.indexed_blockhashes.len()
);
let chan = SyncChannel::new(1);
let chan = SyncChannel::new(0);
let tx = chan.sender();
let parser = parse_files(self.files.split_off(0), self.duration.clone(), self.magic);
spawn_thread("bulk_indexer", move || {