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
  • Loading branch information
ti-chi-bot authored May 23, 2023
1 parent 980b018 commit 0c4d010
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 @@ -577,8 +577,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 0c4d010

Please sign in to comment.