Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove use of hardcoded value (see issue #4451) #4485

Merged
merged 23 commits into from
Aug 17, 2022

Conversation

jorgeantonio21
Copy link
Contributor

@jorgeantonio21 jorgeantonio21 commented Aug 16, 2022

Description
--- Remove the use of hard-coded value here.

Motivation and Context

Fixes #4451

How Has This Been Tested?
--- Manually.

@jorgeantonio21
Copy link
Contributor Author

Fixes: #4451.

@jorgeantonio21 jorgeantonio21 marked this pull request as ready for review August 16, 2022 09:12
@@ -91,7 +91,7 @@ impl OnConnect {
.connectivity
.ban_peer_until(
conn.peer_node_id().clone(),
Duration::from_secs(60 * 60),
Duration::from_secs(DURATION_SYNC_PEERS),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont make it a const, take it from the config, there is a config settings, ban_short_duration

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I add this config value. Much better now :)

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making a const is better practice, but its a hardcoded value

@jorgeantonio21
Copy link
Contributor Author

Remove @dan cucumber tests from WalletCli.feature, see PR #4490.

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aviator-app aviator-app bot merged commit 37d38d6 into tari-project:development Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use config value here instead of hardcoded time
3 participants