use heatbeat in second, not ms

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
Victor Vieux 2015-05-26 11:19:04 -07:00
parent 0b24992d7c
commit 41c2060ab5
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func (s *Discovery) fetch() (discovery.Entries, error) {
func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error) {
ch := make(chan discovery.Entries)
errCh := make(chan error)
ticker := time.NewTicker(s.heartbeat)
ticker := time.NewTicker(s.heartbeat * time.Second)
go func() {
defer close(errCh)