Skip to content

add GetDuration to SuperFlag#248

Merged
karlmcguire merged 3 commits intomasterfrom
karl/flags
Feb 11, 2021
Merged

add GetDuration to SuperFlag#248
karlmcguire merged 3 commits intomasterfrom
karl/flags

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