fix: improve error messages for channel retrieval failures in distributor and relay

This commit is contained in:
CaIon
2025-07-23 16:32:52 +08:00
parent e0b859dbbe
commit 756a8c50d6
3 changed files with 6 additions and 9 deletions

View File

@@ -109,9 +109,6 @@ func CacheGetRandomSatisfiedChannel(c *gin.Context, group string, model string,
return nil, group, err
}
}
if channel == nil {
return nil, group, errors.New("channel not found")
}
return channel, selectGroup, nil
}