Skip to content

Commit

Permalink
feat:merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng.qi committed Nov 7, 2023
1 parent 597c449 commit cb3fd01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions service/instance.go
Expand Up @@ -1010,13 +1010,6 @@ type rawSvcName interface {
GetNamespace() string
}

func (s *Server) allowAutoCreate() bool {
if s.cfg == nil {
return false
}
return s.cfg.AutoCreate
}

// createWrapServiceIfAbsent 如果服务不存在,则进行创建,并返回服务的ID信息
func (s *Server) createWrapServiceIfAbsent(ctx context.Context, instance wrapSvcName) (string, *apiservice.Response) {
return s.createServiceIfAbsent(ctx, instance.GetNamespace().GetValue(), instance.GetService().GetValue())
Expand Down
4 changes: 4 additions & 0 deletions service/server.go
Expand Up @@ -67,6 +67,10 @@ func (s *Server) isSupportL5() bool {
return s.config.L5Open
}

func (s *Server) allowAutoCreate() bool {
return s.config.AutoCreate
}

// HealthServer 健康检查Server
func (s *Server) HealthServer() *healthcheck.Server {
return s.healthServer
Expand Down

0 comments on commit cb3fd01

Please sign in to comment.