From c8fdfbcdd4c6eef6ac5777f6a11ab45b87f55eee Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Thu, 1 Dec 2022 21:00:07 +0800 Subject: [PATCH] server: fix port of autoid_service (#39552) Co-authored-by: Weizhen Wang --- server/http_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/http_status.go b/server/http_status.go index e86868325aa0c..fef13b2c3fd2f 100644 --- a/server/http_status.go +++ b/server/http_status.go @@ -477,7 +477,7 @@ func (s *Server) startStatusServerAndRPCServer(serverMux *http.ServeMux) { logutil.BgLogger().Error("tikv store not etcd background", zap.Error(err)) break } - selfAddr := s.cfg.AdvertiseAddress + selfAddr := fmt.Sprintf("%s:%d", s.cfg.AdvertiseAddress, s.cfg.Status.StatusPort) service := autoid.New(selfAddr, etcdAddr, store, ebd.TLSConfig()) logutil.BgLogger().Info("register auto service at", zap.String("addr", selfAddr)) pb.RegisterAutoIDAllocServer(grpcServer, service)