Skip to content

Commit

Permalink
meta/autoid: enable etcd client auto sync for autoid service (#43529)
Browse files Browse the repository at this point in the history
close #42643
  • Loading branch information
tiancaiamao authored May 4, 2023
1 parent 0667abb commit 887331d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meta/autoid/autoid.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,9 @@ func newSinglePointAlloc(store kv.Storage, dbID, tblID int64, isUnsigned bool) *
}
if len(addrs) > 0 {
etcdCli, err := clientv3.New(clientv3.Config{
Endpoints: addrs,
TLS: ebd.TLSConfig(),
Endpoints: addrs,
AutoSyncInterval: 30 * time.Second,
TLS: ebd.TLSConfig(),
})
if err != nil {
logutil.BgLogger().Error("[autoid client] fail to connect etcd, fallback to default", zap.Error(err))
Expand Down

0 comments on commit 887331d

Please sign in to comment.