Skip to content

Commit

Permalink
fix: remove use of hardcoded value (see issue #4451) (#4485)
Browse files Browse the repository at this point in the history
Description
--- Remove the use of hard-coded value [here](https://github.com/tari-project/tari/blob/development/comms/dht/src/network_discovery/on_connect.rs#L94).

Motivation and Context
--- 
Fixes #4451 

How Has This Been Tested?
--- Manually.
  • Loading branch information
jorgeantonio21 committed Aug 17, 2022
1 parent 073de55 commit 37d38d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions comms/dht/src/network_discovery/on_connect.rs
Expand Up @@ -20,7 +20,7 @@
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

use std::{convert::TryInto, time::Duration};
use std::convert::TryInto;

use futures::StreamExt;
use log::*;
Expand All @@ -41,7 +41,6 @@ use crate::{
};

const LOG_TARGET: &str = "comms::dht::network_discovery:onconnect";

const NUM_FETCH_PEERS: u32 = 1000;

#[derive(Debug)]
Expand Down Expand Up @@ -91,7 +90,7 @@ impl OnConnect {
.connectivity
.ban_peer_until(
conn.peer_node_id().clone(),
Duration::from_secs(60 * 60),
self.config().ban_duration,
err.to_string(),
)
.await
Expand Down
1 change: 0 additions & 1 deletion integration_tests/features/WalletCli.feature
Expand Up @@ -139,4 +139,3 @@ Feature: Wallet CLI
Given I have a base node BASE
And I have wallet WALLET connected to base node BASE
Then I run whois BASE on wallet WALLET via command line

0 comments on commit 37d38d6

Please sign in to comment.