From e05f4dcd3e519a4fa47dc7f5c1610d165b17a0a0 Mon Sep 17 00:00:00 2001 From: cocktail Date: Thu, 30 May 2019 17:50:34 +0800 Subject: [PATCH] udpate --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 3beddac..d7c23f6 100644 --- a/connection.go +++ b/connection.go @@ -91,7 +91,7 @@ func (e *EurekaConnection) UpdateApp(app *Application) { if err != nil { log.Errorf("Failure updating %s in goroutine", app.Name) } - <-time.After(time.Duration(e.PollInterval) * time.Second) + <-time.After(e.PollInterval) } }() }