From 8cdd856fc4d7de41dfb21ec6cfc1f331352d3764 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Wed, 21 Nov 2018 15:35:54 -0800 Subject: [PATCH] catalog/from-k8s: Don't spin loop on watchService With the `default:` clause here, the time.After doesn't work and just falls through to `default` causing a spin loop on the consul agent. --- catalog/from-k8s/syncer.go | 1 - 1 file changed, 1 deletion(-) diff --git a/catalog/from-k8s/syncer.go b/catalog/from-k8s/syncer.go index aa6f31b8a9..c591903212 100644 --- a/catalog/from-k8s/syncer.go +++ b/catalog/from-k8s/syncer.go @@ -213,7 +213,6 @@ func (s *ConsulSyncer) watchService(ctx context.Context, name string) { // Wait for our poll period case <-time.After(s.SyncPeriod): - default: } // Wait for service changes