Skip to content

Commit

Permalink
format vip
Browse files Browse the repository at this point in the history
  • Loading branch information
MI-cool committed Mar 27, 2023
1 parent 71a86a8 commit b50ff03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiserver/eurekaserver/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ func (h *EurekaServer) QueryByVipAddress(req *restful.Request, rsp *restful.Resp
}
appsRespCache := h.worker.GetVipApps(VipCacheKey{
entityType: entityTypeVip,
targetVipAddress: vipAddress,
targetVipAddress: formatReadName(vipAddress),
})
acceptValue := getParamFromEurekaRequestHeader(req, restful.HEADER_Accept)
if err := writeResponse(parseAcceptValue(acceptValue), appsRespCache, req, rsp); nil != err {
Expand All @@ -658,7 +658,7 @@ func (h *EurekaServer) QueryBySVipAddress(req *restful.Request, rsp *restful.Res
}
appsRespCache := h.worker.GetVipApps(VipCacheKey{
entityType: entityTypeSVip,
targetVipAddress: vipAddress,
targetVipAddress: formatReadName(vipAddress),
})
acceptValue := getParamFromEurekaRequestHeader(req, restful.HEADER_Accept)
if err := writeResponse(parseAcceptValue(acceptValue), appsRespCache, req, rsp); nil != err {
Expand Down

0 comments on commit b50ff03

Please sign in to comment.