From 33ddd03a102644c2c8417aa909f91d0a26a48e06 Mon Sep 17 00:00:00 2001 From: gunli Date: Thu, 23 Jan 2025 15:13:06 +0800 Subject: [PATCH] [INLONG-11709][SDK] Delete redundant default case in the discoverer of Golang SDK --- .../dataproxy-sdk-golang/dataproxy/discoverer.go | 2 -- .../dataproxy-sdk-twins/dataproxy-sdk-golang/discoverer/dns.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/dataproxy/discoverer.go b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/dataproxy/discoverer.go index d7bfebb9002..5356777ee82 100755 --- a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/dataproxy/discoverer.go +++ b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/dataproxy/discoverer.go @@ -180,8 +180,6 @@ func (d *dataProxyDiscoverer) update() { d.lookup() case <-stopCh: return - default: - time.Sleep(500 * time.Millisecond) } } }() diff --git a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/discoverer/dns.go b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/discoverer/dns.go index 1e8d321aa70..7abaf973936 100755 --- a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/discoverer/dns.go +++ b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-golang/discoverer/dns.go @@ -209,8 +209,6 @@ func (d *dnsDiscoverer) update() { d.lookup() case <-stopCh: return - default: - time.Sleep(500 * time.Millisecond) } } }()