From 69969b17237c6887bf0dcb650c597c3071cdb653 Mon Sep 17 00:00:00 2001 From: John Guo Date: Tue, 10 Dec 2024 20:59:44 +0800 Subject: [PATCH] fix(contrib/registry/etcd): remove default configuration of `AutoSyncInterval` (#4027) --- contrib/registry/etcd/etcd.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/contrib/registry/etcd/etcd.go b/contrib/registry/etcd/etcd.go index fac43a9e46d..0e95f87aafc 100644 --- a/contrib/registry/etcd/etcd.go +++ b/contrib/registry/etcd/etcd.go @@ -55,10 +55,6 @@ const ( // DefaultDialTimeout is the timeout for failing to establish a connection. DefaultDialTimeout = time.Second * 5 - - // DefaultAutoSyncInterval is the interval to update endpoints with its latest members. - // 0 disables auto-sync. By default auto-sync is disabled. - DefaultAutoSyncInterval = time.Second ) // New creates and returns a new etcd registry. @@ -98,7 +94,6 @@ func New(address string, option ...Option) gsvc.Registry { } cfg.DialTimeout = DefaultDialTimeout - cfg.AutoSyncInterval = DefaultAutoSyncInterval var usedOption Option if len(option) > 0 {