|
|
@ -290,28 +290,28 @@ impl Connection { |
|
|
|
.with_label_values(&[method]) |
|
|
|
.start_timer(); |
|
|
|
let result = match method { |
|
|
|
"blockchain.headers.subscribe" => self.blockchain_headers_subscribe(), |
|
|
|
"server.version" => self.server_version(), |
|
|
|
"server.banner" => self.server_banner(), |
|
|
|
"server.donation_address" => self.server_donation_address(), |
|
|
|
"server.peers.subscribe" => self.server_peers_subscribe(), |
|
|
|
"mempool.get_fee_histogram" => self.mempool_get_fee_histogram(), |
|
|
|
"blockchain.address.get_balance" => self.blockchain_address_get_balance(¶ms), |
|
|
|
"blockchain.address.get_history" => self.blockchain_address_get_history(¶ms), |
|
|
|
"blockchain.address.listunspent" => self.blockchain_address_listunspent(¶ms), |
|
|
|
"blockchain.address.subscribe" => self.blockchain_address_subscribe(¶ms), |
|
|
|
"blockchain.block.get_header" => self.blockchain_block_get_header(¶ms), |
|
|
|
"blockchain.block.header" => self.blockchain_block_header(¶ms), |
|
|
|
"blockchain.block.headers" => self.blockchain_block_headers(¶ms), |
|
|
|
"blockchain.block.get_header" => self.blockchain_block_get_header(¶ms), |
|
|
|
"blockchain.estimatefee" => self.blockchain_estimatefee(¶ms), |
|
|
|
"blockchain.headers.subscribe" => self.blockchain_headers_subscribe(), |
|
|
|
"blockchain.relayfee" => self.blockchain_relayfee(), |
|
|
|
"blockchain.address.subscribe" => self.blockchain_address_subscribe(¶ms), |
|
|
|
"blockchain.address.get_balance" => self.blockchain_address_get_balance(¶ms), |
|
|
|
"blockchain.address.get_history" => self.blockchain_address_get_history(¶ms), |
|
|
|
"blockchain.address.listunspent" => self.blockchain_address_listunspent(¶ms), |
|
|
|
"blockchain.scripthash.subscribe" => self.blockchain_scripthash_subscribe(¶ms), |
|
|
|
"blockchain.scripthash.get_balance" => self.blockchain_scripthash_get_balance(¶ms), |
|
|
|
"blockchain.scripthash.get_history" => self.blockchain_scripthash_get_history(¶ms), |
|
|
|
"blockchain.scripthash.listunspent" => self.blockchain_scripthash_listunspent(¶ms), |
|
|
|
"blockchain.scripthash.subscribe" => self.blockchain_scripthash_subscribe(¶ms), |
|
|
|
"blockchain.transaction.broadcast" => self.blockchain_transaction_broadcast(¶ms), |
|
|
|
"blockchain.transaction.get" => self.blockchain_transaction_get(¶ms), |
|
|
|
"blockchain.transaction.get_merkle" => self.blockchain_transaction_get_merkle(¶ms), |
|
|
|
"mempool.get_fee_histogram" => self.mempool_get_fee_histogram(), |
|
|
|
"server.banner" => self.server_banner(), |
|
|
|
"server.donation_address" => self.server_donation_address(), |
|
|
|
"server.peers.subscribe" => self.server_peers_subscribe(), |
|
|
|
"server.version" => self.server_version(), |
|
|
|
&_ => bail!("unknown method {} {:?}", method, params), |
|
|
|
}; |
|
|
|
timer.observe_duration(); |
|
|
|