nothing
This commit is contained in:
parent
1f899b63a6
commit
ca11caf902
1 changed files with 3 additions and 0 deletions
|
|
@ -209,6 +209,9 @@ impl HttpApi {
|
||||||
|
|
||||||
let dht_routing_table = warp::path!("dht" / "table").map({
|
let dht_routing_table = warp::path!("dht" / "table").map({
|
||||||
let inner = inner.clone();
|
let inner = inner.clone();
|
||||||
|
|
||||||
|
// clippy suggests something that doesn't work here.
|
||||||
|
#[allow(clippy::redundant_closure)]
|
||||||
move || match inner.dht.as_ref() {
|
move || match inner.dht.as_ref() {
|
||||||
Some(dht) => dht.with_routing_table(|r| json_response(r)),
|
Some(dht) => dht.with_routing_table(|r| json_response(r)),
|
||||||
None => not_found_response("DHT is off".into()),
|
None => not_found_response("DHT is off".into()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue