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

Make registry heartbeat TTL configurable #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rtadepalli
Copy link

Saw a TODO in kv_registry.go that said that it'd be nice if the heartbeat TTL was configurable, so this change acts on that TODO.

I've made all registries that currently take options take in what the heartbeat TTL value should be, and have exposed a HeartbeatTTL() function to environment such that this value is appropriately passed to context.WithTimeout while calling Heartbeat() on the environment object. This was previously using the hardcoded default of 5 seconds.

cc @richardartoul

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.

1 participant