Skip to content

Commit

Permalink
fix: Undo _e => e variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencin committed Jan 25, 2025
1 parent 82313d3 commit c9cbd23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stackslib/src/burnchains/bitcoin/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,21 +264,21 @@ impl BitcoinIndexer {
match net::TcpStream::connect((self.config.peer_host.as_str(), self.config.peer_port)) {
Ok(s) => {
// Disable Nagle algorithm
s.set_nodelay(true).map_err(|e| {
test_debug!("Failed to set TCP_NODELAY: {e:?}");
s.set_nodelay(true).map_err(|_e| {
test_debug!("Failed to set TCP_NODELAY: {_e:?}");
btc_error::ConnectionError
})?;

// set timeout
s.set_read_timeout(Some(Duration::from_secs(self.runtime.timeout)))
.map_err(|e| {
test_debug!("Failed to set TCP read timeout: {e:?}");
.map_err(|_e| {
test_debug!("Failed to set TCP read timeout: {_e:?}");
btc_error::ConnectionError
})?;

s.set_write_timeout(Some(Duration::from_secs(self.runtime.timeout)))
.map_err(|e| {
test_debug!("Failed to set TCP write timeout: {e:?}");
.map_err(|_e| {
test_debug!("Failed to set TCP write timeout: {_e:?}");
btc_error::ConnectionError
})?;

Expand Down

0 comments on commit c9cbd23

Please sign in to comment.