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

Change MaxRecordAge from const to var #409

Closed
wants to merge 1 commit into from
Closed

Conversation

cpacia
Copy link

@cpacia cpacia commented Nov 13, 2019

This change is to make MaxRecordAge configurable from outside the package so
users can set a custom record expiration in their projects.

closes #408

This change is to make MaxRecordAge configurable from outside the package so
users can set a custom record expiration in their projects.
@Stebalien
Copy link
Member

@vyzo's right that we "pretty much do this everywhere". But we really shouldn't use this for anything but debugging.

Would adding a functional option work? (opts/options.go)

@aarshkshah1992
Copy link
Contributor

@cpacia Having a functional option is cleaner. Please do let me know if you'd like me to come up with a PR. This is also nice to have for #388.

@cpacia
Copy link
Author

cpacia commented Nov 14, 2019

Yeah I can make the change. Will try to do it this weekend.

@aarshkshah1992 if you feel like you can more quickly add it to your PR, let me know.

@aarshkshah1992
Copy link
Contributor

@cpacia Please take a look at #410. We can now close this PR.

@Stebalien Stebalien closed this Nov 15, 2019
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.

Configurable MaxRecordAge
3 participants