Skip to content

Commit

Permalink
Merge branch 'master' into update_action
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Mar 19, 2024
2 parents a003a8b + 1331148 commit a44e120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/apiv2/handlers/micro_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func RegisterMicroService(r *gin.RouterGroup) {
func GetMembers(c *gin.Context) {
svr := c.MustGet(middlewares.ServerContextKey).(*server.Server)
if !svr.IsAPIServiceMode() {
c.AbortWithStatusJSON(http.StatusServiceUnavailable, "not support micro service")
c.AbortWithStatusJSON(http.StatusNotFound, "not support micro service")
return
}

Expand All @@ -66,7 +66,7 @@ func GetMembers(c *gin.Context) {
func GetPrimary(c *gin.Context) {
svr := c.MustGet(middlewares.ServerContextKey).(*server.Server)
if !svr.IsAPIServiceMode() {
c.AbortWithStatusJSON(http.StatusServiceUnavailable, "not support micro service")
c.AbortWithStatusJSON(http.StatusNotFound, "not support micro service")
return
}

Expand Down

0 comments on commit a44e120

Please sign in to comment.