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

Add a few TODOs

This commit is contained in:
Roman Zeyde 2019-01-21 14:18:39 +02:00
parent 088eff5a86
commit f51c7dc6b4
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ impl Parser {
}
fn last_indexed_row(&self) -> Row {
// TODO: use JSONRPC for missing blocks, and don't use 'L' row at all.
let indexed_blockhashes = self.indexed_blockhashes.lock().unwrap();
let last_header = self
.current_headers

View File

@ -313,6 +313,7 @@ impl Daemon {
HistogramOpts::new("daemon_rpc", "Bitcoind RPC latency (in seconds)"),
&["method"],
),
// TODO: use better buckets (e.g. 1 byte to 10MB).
size: metrics.histogram_vec(
HistogramOpts::new("daemon_bytes", "Bitcoind RPC size (in bytes)"),
&["method", "dir"],