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

feat(list-tribes): add configurable timeout to list-tribes command #44

Merged

Conversation

ksrichard
Copy link
Collaborator

Description

Until now the list-tribes command was trying to collect all the tribes within fixed 30 seconds. Now with this change it is configurable via cli using --timeout where you can set the timeout as seconds.

Motivation and Context

How Has This Been Tested?

sha_p2pool list-tribes --timeout 5 - within 5 seconds it is listing currently known tribes.

What process can a PR reviewer use to test or verify this change?

See test.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@ksrichard ksrichard enabled auto-merge September 16, 2024 11:22
@ksrichard ksrichard added this pull request to the merge queue Sep 16, 2024
///
/// The list-tribes commands tries to look for all the currently available tribes
/// for this amount of time maximum.
#[arg(long, value_name = "timeout", default_value_t = 30)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this to 15 seconds as a default

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okay, let me change

Merged via the queue into tari-project:development with commit 3a1d0bb Sep 16, 2024
10 of 11 checks passed
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.

2 participants