summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2017-10-25 00:27:30 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2017-10-25 00:27:30 -0400
commit4e1e79f79daf8ddc865def2d3d8c6387e6f59a99 (patch)
tree11d4e1113398221e91dbb526421443be390a3c1b /ipfs-api/src/response
parent40f8878d2008e099efa9ada9b126452c2d307081 (diff)
fix issue with bad type
Diffstat (limited to 'ipfs-api/src/response')
-rw-r--r--ipfs-api/src/response/dht.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/src/response/dht.rs b/ipfs-api/src/response/dht.rs
index 3b71038..9b66d97 100644
--- a/ipfs-api/src/response/dht.rs
+++ b/ipfs-api/src/response/dht.rs
@@ -7,7 +7,8 @@ pub struct DhtPeerResponse {
#[serde(rename = "ID")]
pub id: String,
- pub addrs: String,
+ #[serde(deserialize_with = "serde::deserialize_vec")]
+ pub addrs: Vec<String>,
}