Skip to content

Commit 45f2e17

Browse files
committed
Review issues
1 parent 2fc19f1 commit 45f2e17

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

multinode_integration_tests/tests/bookkeeping_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn provided_and_consumed_services_are_recorded_in_databases() {
2828
thread::sleep(Duration::from_secs(10));
2929

3030
let mut client = originating_node.make_client(8080, STANDARD_CLIENT_TIMEOUT_MILLIS);
31-
client.set_timeout(Duration::from_secs(20));
31+
client.set_timeout(Duration::from_secs(10));
3232
let request = "GET / HTTP/1.1\r\nHost: www.example.com\r\n\r\n".as_bytes();
3333

3434
client.send_chunk(request);

node/src/proxy_client/stream_establisher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ impl StreamEstablisher {
5050
&mut self,
5151
payload: &ClientRequestPayload_0v1,
5252
ip_addrs: Vec<IpAddr>,
53-
target_hostname: String,
53+
target_hostname: &str,
5454
) -> io::Result<Box<dyn SenderWrapper<SequencedPacket>>> {
5555
let connection_info = self.stream_connector.connect_one(
5656
ip_addrs,
57-
&target_hostname,
57+
target_hostname,
5858
payload.target_port,
5959
&self.logger,
6060
)?;

node/src/proxy_client/stream_handler_pool.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl StreamHandlerPoolReal {
364364
let mut stream_establisher = StreamHandlerPoolReal::make_establisher(inner_arc);
365365
Box::new(
366366
future::lazy(move || {
367-
stream_establisher.establish_stream(&payload, vec![ip_addr], target_hostname)
367+
stream_establisher.establish_stream(&payload, vec![ip_addr], &target_hostname)
368368
})
369369
.map_err(|io_error| format!("Could not establish stream: {:?}", io_error)),
370370
)
@@ -452,8 +452,7 @@ impl StreamHandlerPoolReal {
452452
logger,
453453
"Found IP addresses for {}: {:?}", target_hostname, &filtered_ip_addrs
454454
);
455-
let result =
456-
establisher.establish_stream(payload, filtered_ip_addrs, target_hostname.clone());
455+
let result = establisher.establish_stream(payload, filtered_ip_addrs, &target_hostname);
457456
match result {
458457
Ok(sender_wrapper) => {
459458
debug!(

node/src/sub_lib/neighborhood.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub enum NeighborhoodMode {
7575
}
7676

7777
impl Display for NeighborhoodMode {
78-
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
78+
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
7979
match self {
8080
NeighborhoodMode::Standard(_, _, _) => write!(f, "Standard"),
8181
NeighborhoodMode::ZeroHop => write!(f, "ZeroHop"),

0 commit comments

Comments
 (0)