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 the PingInterval units seconds, not a time.Duration #184

Merged
merged 1 commit into from
May 24, 2018

Conversation

kozlovic
Copy link
Member

There would be a danger of clients passing values expected
to be seconds that would have been nanoseconds (the unit of
a time.Duration).

For tests, where lower values are good, we can make this work
by passing a negative value when the server runs in a test mode.

Signed-off-by: Ivan Kozlovic ivan@synadia.com

There would be a danger of clients passing values expected
to be seconds that would have been nanoseconds (the unit of
a time.Duration).

For tests, where lower values are good, we can make this work
by passing a negative value when the server runs in a test mode.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic merged commit c6a960c into master May 24, 2018
@kozlovic kozlovic deleted the fix_ping_interval_proto branch May 24, 2018 17:08
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.539% when pulling 8c9d9c1 on fix_ping_interval_proto into ce89b3a on master.

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.

None yet

2 participants