fix: fix SQL channel selection algo (#1197)

This commit is contained in:
JustSong
2024-03-27 19:09:27 +08:00
parent 96d7a99312
commit 5e81e19bc8
2 changed files with 10 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ func SyncChannelCache(frequency int) {
func CacheGetRandomSatisfiedChannel(group string, model string, ignoreFirstPriority bool) (*Channel, error) {
if !config.MemoryCacheEnabled {
return GetRandomSatisfiedChannel(group, model)
return GetRandomSatisfiedChannel(group, model, ignoreFirstPriority)
}
channelSyncLock.RLock()
defer channelSyncLock.RUnlock()