Skip to content

Conversation

@coadler
Copy link
Contributor

@coadler coadler commented Mar 28, 2023

No description provided.

@coadler coadler requested a review from deansheather March 28, 2023 14:40
@coadler coadler self-assigned this Mar 28, 2023
tunnelsdk/api.go Outdated
type ClientRegisterResponse struct {
Version TunnelVersion `json:"version"`
Version TunnelVersion `json:"version"`
PollEvery time.Duration `json:"poll_every"`
Copy link
Member

Choose a reason for hiding this comment

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

How about ReregisterAt time.Time instead, and then make the client loop sleep until that time after each request

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the client will be running on machines we don't control and possibly with out of date clocks, I think it's probably safer to use a duration here

@coadler coadler merged commit f8dd0eb into main Mar 28, 2023
@coadler coadler deleted the colin/better-errs branch March 28, 2023 19:25
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.

2 participants