Skip to content

Commit

Permalink
fix(contrib/registry/etcd): remove default configuration of `AutoSync…
Browse files Browse the repository at this point in the history
…Interval` (#4027)
  • Loading branch information
gqcn authored Dec 10, 2024
1 parent 38bffc7 commit 69969b1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contrib/registry/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 69969b1

Please sign in to comment.