Skip to content

Commit

Permalink
fix:服务列表支持服务可见性&修复服务可见性优先级判断
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Nov 29, 2024
1 parent 48e8510 commit 46387bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/client_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (s *Server) GetServiceWithCache(ctx context.Context, req *apiservice.Servic
revisions = append(revisions, visibleSvcs[i].Revision)
}
if rever, err := cachetypes.CompositeComputeRevision(revisions); err != nil {
log.Errorf("[Server][Discover] list services compute multi revision",
log.Error("[Server][Discover] list services compute multi revision",
zap.String("namespace", req.GetNamespace().GetValue()), zap.Error(err))
return api.NewDiscoverInstanceResponse(apimodel.Code_ExecuteException, req)
} else {

Check warning on line 190 in service/client_v1.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.21.5)

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
Expand Down

0 comments on commit 46387bf

Please sign in to comment.