diff options
author | Simon Heath <icefoxen@gmail.com> | 2017-12-08 17:55:25 -0500 |
---|---|---|
committer | Simon Heath <icefoxen@gmail.com> | 2017-12-08 17:55:25 -0500 |
commit | 52a7388cd07b73fd2e46d143ef51fabd6fff3d1a (patch) | |
tree | 3d71aa811f9355e9634987aaeaad615c3f452beb /ipfs-api/src/client.rs | |
parent | b7b3d36dd384dcaa907c9e00be6355b03c53d2d4 (diff) |
Updated sizes in type definitions
Mostly from digging through the go code in various places.
Rust doesn't really like 'usize' and 'isize' much because they're
specifically the size of array indexes; kinda like size_t in C.
So it can be annoying to use them on different platforms or in cross-
platform API's or suck.
Diffstat (limited to 'ipfs-api/src/client.rs')
-rw-r--r-- | ipfs-api/src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipfs-api/src/client.rs b/ipfs-api/src/client.rs index c5fb1bd..24a78b3 100644 --- a/ipfs-api/src/client.rs +++ b/ipfs-api/src/client.rs @@ -1712,7 +1712,7 @@ impl IpfsClient { pub fn ping( &self, peer: &str, - count: &Option<usize>, + count: &Option<i32>, ) -> AsyncStreamResponse<response::PingResponse> { self.request_stream_json(&request::Ping { peer, count }, None) } |