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

Market - configurable (ENV) offer expiration (to enable tests) #1252

Merged
merged 3 commits into from
Apr 23, 2021

Conversation

nieznanysprawiciel
Copy link
Contributor

@nieznanysprawiciel nieznanysprawiciel commented Apr 20, 2021

Necessary for yapapi tests in goth.
Env var:
DEFAULT_SUBSCRIPTION_TTL

@nieznanysprawiciel nieznanysprawiciel requested review from jiivan, azawlocki, tworec and a team April 20, 2021 13:52
@nieznanysprawiciel nieznanysprawiciel changed the base branch from master to release/v0.6 April 20, 2021 13:52
Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

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

I've left some suggestions for a more informative name for the environment variable.

pub struct SubscriptionConfig {
#[structopt(env, parse(try_from_str = parse_chrono_duration), default_value = "1h")]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd call the variable DEFAULT_SUBSCRIPTION_TTL or SUBSCRIPTION_DEFAULT_TTL (whichever fits yagna naming convention for config env vars better).

Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

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

LGTM!

@nieznanysprawiciel nieznanysprawiciel changed the title Market - configurable offer expiration Market - configurable offer expiration (to enable tests) Apr 21, 2021
@nieznanysprawiciel
Copy link
Contributor Author

Related to golemfactory/yagna-triage#95

@nieznanysprawiciel nieznanysprawiciel changed the title Market - configurable offer expiration (to enable tests) Market - configurable (ENV) offer expiration (to enable tests) Apr 21, 2021
@tworec tworec merged commit 89ace15 into release/v0.6 Apr 23, 2021
@tworec tworec deleted the market/configurable-offer-expiration branch April 23, 2021 12:26
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.

3 participants