fix: improve error messages for channel retrieval failures in distributor and relay
This commit is contained in:
1 parent
5bd8dd787e
commit
5418bb3b7c
3 files changed
+6
-9
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user