-
Notifications
You must be signed in to change notification settings - Fork 68
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
Conversation
There was a problem hiding this 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.
core/market/src/config.rs
Outdated
pub struct SubscriptionConfig { | ||
#[structopt(env, parse(try_from_str = parse_chrono_duration), default_value = "1h")] |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related to golemfactory/yagna-triage#95 |
Necessary for yapapi tests in goth.
Env var:
DEFAULT_SUBSCRIPTION_TTL