Fix get outputs call in wallet (#1319)

* Fix get outputs call in wallet. It generates an invalid url if there are 1000+ outputs.
* Also switched to async http client for performance reasons
* Couple unrelated cleanups
* fixup! Fix get outputs call in wallet
This commit is contained in:
hashmap
2018-08-06 21:48:05 +02:00
committed by Ignotus Peverell
parent 498ea9718e
commit 414a30224e
3 changed files with 22 additions and 13 deletions
-2
View File
@@ -5,7 +5,6 @@ use hyper::{Body, Method, Request, Response, StatusCode};
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::sync::Arc;
use util::LOGGER;
lazy_static! {
static ref WILDCARD_HASH: u64 = calculate_hash(&"*");
@@ -141,7 +140,6 @@ impl Router {
for key in keys {
node_id = self.find(node_id, key).ok_or(RouterError::RouteNotFound)?;
if self.node(node_id).key == *WILDCARD_STOP_HASH {
debug!(LOGGER, "ROUTER stop card");
break;
}
}