Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit ffc65c8

Browse files
bors[bot]ljedrz
andauthored
Merge #379
379: A regular maintenance pass r=aphelionz a=ljedrz The usual `cargo update` run plus the removal of an unneeded direct dep and a dead test. Co-authored-by: ljedrz <[email protected]>
2 parents 86574f5 + 1be3bb3 commit ffc65c8

File tree

4 files changed

+11
-53
lines changed

4 files changed

+11
-53
lines changed

Cargo.lock

+10-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bitswap/src/protocol.rs

-40
Original file line numberDiff line numberDiff line change
@@ -98,43 +98,3 @@ impl From<()> for MessageWrapper {
9898
Self::Tx
9999
}
100100
}
101-
102-
#[cfg(test)]
103-
mod tests {
104-
/*
105-
use futures::prelude::*;
106-
use libp2p::core::upgrade;
107-
use super::*;
108-
use tokio::net::{TcpListener, TcpStream};
109-
110-
// TODO: rewrite tests with the MemoryTransport
111-
// TODO: figure out why it doesn't exit
112-
#[test]
113-
#[ignore]
114-
fn test_upgrade() {
115-
// yeah this probably did not work before
116-
let listener = TcpListener::bind(&"127.0.0.1:0".parse().unwrap()).unwrap();
117-
let listener_addr = listener.local_addr().unwrap();
118-
119-
let _server = listener
120-
.incoming()
121-
.into_future()
122-
.map_err(|(e, _)| e)
123-
.and_then(|(c, _)| {
124-
println!("upgrading server");
125-
upgrade::apply_inbound(c.unwrap(), BitswapConfig::default())
126-
.map_err(|_| panic!())
127-
})
128-
.map(|_| ());
129-
130-
let _client = TcpStream::connect(&listener_addr)
131-
.and_then(|c| {
132-
println!("upgrading client");
133-
upgrade::apply_outbound(c, Message::new())
134-
.map_err(|_| panic!())
135-
});
136-
137-
//tokio::run(server.select(client).map(|_| ()).map_err(|_| panic!()));
138-
}
139-
*/
140-
}

http/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ bytes = { default-features = false, version = "0.5" }
1616
cid = { default-features = false, version = "0.5" }
1717
futures = { default-features = false, version = "0.3" }
1818
humantime = { default-features = false, version = "2.0" }
19-
hyper = { default-features = false, version = "0.13" }
2019
ipfs = { path = "../" }
2120
mime = { default-features = false, version = "0.3" }
2221
mpart-async = { default-features = false, version = "0.4" }

http/src/v0/pin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async fn list_inner<T: IpfsTypes>(
254254
}
255255
}
256256

257-
fn format_json_newline<St, T, E>(st: St) -> warp::http::Response<hyper::body::Body>
257+
fn format_json_newline<St, T, E>(st: St) -> warp::http::Response<warp::hyper::Body>
258258
where
259259
St: futures::stream::Stream<Item = Result<T, E>> + Send + 'static,
260260
T: Serialize + Send + 'static,

0 commit comments

Comments
 (0)