Skip to content

Commit

Permalink
server: fix port of autoid_service
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Dec 1, 2022
1 parent 6a4b909 commit f0563f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/http_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0563f9

Please sign in to comment.