fix🐛: fix github.com/alibaba/sentinel-golang middleware(#679)
This commit is contained in:
1 parent
f94b437852
commit
d40a0c0837
1 file changed
+1
-1
@@ -22,7 +22,7 @@ func Sentinel() gin.HandlerFunc {
|
||||
return sentinel.SentinelMiddleware(
|
||||
sentinel.WithBlockFallback(func(ctx *gin.Context) {
|
||||
ctx.AbortWithStatusJSON(200, map[string]interface{}{
|
||||
"msg": "too many request; the quota used up",
|
||||
"msg": "too many request; the quota used up!",
|
||||
"code": 500,
|
||||
})
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user