mirror of https://github.com/docker/docs.git
use heatbeat in second, not ms
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
0b24992d7c
commit
41c2060ab5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue