Skip to content

Comments

[WIP] sd/etcd:started to work on a periodical registrar#355

Closed
pdaures wants to merge 2 commits intogo-kit:masterfrom
pdaures:etcd-periodical-registrar
Closed

[WIP] sd/etcd:started to work on a periodical registrar#355
pdaures wants to merge 2 commits intogo-kit:masterfrom
pdaures:etcd-periodical-registrar

Conversation

@pdaures
Copy link

@pdaures pdaures commented Sep 4, 2016

Work in Progress.

@peterbourgon please comment on the current structure, names and don't hesitate to ask for changes.


// NewPeriodicRegistrar returns a etcd Registrar with recurring registeation acting on the provided catalog
// registration (service).
func NewPeriodicRegistrar(client Client, service Service, logger log.Logger, frequencySec, expirationSec int) *PeriodicRegistrar {
Copy link
Member

Choose a reason for hiding this comment

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

Please use time.Duration instead of int

@peterbourgon
Copy link
Member

Overall direction looks good to me. I'll withhold further comments until you think it's in a ready-for-review state. I'll also update the title to reflect the fact it's a work in progress.

@peterbourgon peterbourgon changed the title sd/etcd:started to work on a periodical registrar [WIP] sd/etcd:started to work on a periodical registrar Sep 5, 2016
@peterbourgon
Copy link
Member

@pdaures Do you want me to take a look at this more thoroughly now?

@peterbourgon
Copy link
Member

This was completed in #413.

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