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

add GetDuration to SuperFlag #248

Merged
merged 3 commits into from
Feb 11, 2021
Merged

add GetDuration to SuperFlag #248

merged 3 commits into from
Feb 11, 2021

Conversation

karlmcguire
Copy link
Contributor

@karlmcguire karlmcguire commented Feb 11, 2021

(Related to Dgraph flag overhaul.)

This is similar to the Viper GetDuration() function we're currently using throughout Dgraph, only I added an h suffix for hours and d suffix for days. We need these suffixes for things like --acl refresh_token=30d which is generally a long duration measured in days.


This change is Reviewable

@karlmcguire karlmcguire merged commit 58fa1b4 into master Feb 11, 2021
@karlmcguire karlmcguire deleted the karl/flags branch February 11, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant