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

sso_auth: add default for groupcache settings #246

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

Jusshersmith
Copy link
Contributor

@Jusshersmith Jusshersmith commented Aug 20, 2019

Problem

If c.refreshTTL is not greater than 0 then a panic is caused upon the execution of

ticker := time.NewTicker(c.refreshTTL)

At the moment, there's no default for this so it must be explicitly set to avoid a panic.

Solution

Set a sane default for refreshTTL (this default was removed during the overhaul of configuration options).

Copy link
Contributor

@benjsto benjsto left a comment

Choose a reason for hiding this comment

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

Looks good!

@jphines
Copy link
Contributor

jphines commented Aug 25, 2019

:shipit:

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.

3 participants