feat: 支持未开启缓存下本地重试

This commit is contained in:
CaIon
2024-04-06 20:45:18 +08:00
parent 257cfc2390
commit 462c328d4b
2 changed files with 50 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ func CacheGetRandomSatisfiedChannel(group string, model string, retry int) (*Cha
// if memory cache is disabled, get channel directly from database
if !common.MemoryCacheEnabled {
return GetRandomSatisfiedChannel(group, model)
return GetRandomSatisfiedChannel(group, model, retry)
}
channelSyncLock.RLock()
defer channelSyncLock.RUnlock()