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

Debug mode: Make upgrade heights controllable by an envvar #5919

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

arajasek
Copy link
Contributor

@arajasek arajasek commented Mar 31, 2021

Makes testing easier for integ partners, use LOTUS_NORWEGIAN_HEIGHT

if found {
nh, err := strconv.Atoi(nhs)
if err != nil {
log.Errorf("failed to parse 'LOTUS_NORWEGIAN_HEIGHT' env var: %s", err)
Copy link
Member

Choose a reason for hiding this comment

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

If we fail, we should either panic or keep the default (not set it to zero).

if found {
h, err := strconv.Atoi(hs)
if err != nil {
log.Errorf("failed to parse %s env var", ev)
Copy link
Member

Choose a reason for hiding this comment

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

nit: log.Panicf

@arajasek arajasek changed the title Debug mode: Make the Norwegian Height controllable by an envvar Debug mode: Make upgrade heights controllable by an envvar Mar 31, 2021
@arajasek arajasek merged commit 09ef832 into release/v1.6.0 Mar 31, 2021
@arajasek arajasek deleted the asr/network-configs branch March 31, 2021 03:58
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.

None yet

2 participants