Skip to content

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:

@Jusshersmith Jusshersmith self-assigned this Aug 27, 2019
@Jusshersmith Jusshersmith merged commit 857d0aa into master Aug 27, 2019
@Jusshersmith Jusshersmith deleted the jusshersmith-add-groupcache-defaults branch August 27, 2019 10:52
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