From 7bf61f916504097ac23efb765b938d8f94c342ce Mon Sep 17 00:00:00 2001 From: JustSong Date: Mon, 15 Apr 2024 23:09:12 +0800 Subject: [PATCH] fix: fix retry not working (close #1314) --- middleware/distributor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/distributor.go b/middleware/distributor.go index 6e0d27185e..19b34ff2b5 100644 --- a/middleware/distributor.go +++ b/middleware/distributor.go @@ -39,7 +39,7 @@ func Distribute() func(c *gin.Context) { return } } else { - requestModel := c.GetString("request_model") + requestModel = c.GetString("request_model") var err error channel, err = model.CacheGetRandomSatisfiedChannel(userGroup, requestModel, false) if err != nil {