1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 03:05:05 +08:00

fix(contrib/registry/etcd): remove default configuration of AutoSyncInterval (#4027)

This commit is contained in:
John Guo 2024-12-10 20:59:44 +08:00 committed by GitHub
parent 38bffc77e2
commit 69969b1723
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {