feat: 测试路径
This commit is contained in:
@@ -23,12 +23,13 @@ type UpstreamInfo struct {
|
||||
|
||||
// BaseChannel provides common functionality for channel proxies.
|
||||
type BaseChannel struct {
|
||||
Name string
|
||||
Upstreams []UpstreamInfo
|
||||
HTTPClient *http.Client
|
||||
StreamClient *http.Client
|
||||
TestModel string
|
||||
upstreamLock sync.Mutex
|
||||
Name string
|
||||
Upstreams []UpstreamInfo
|
||||
HTTPClient *http.Client
|
||||
StreamClient *http.Client
|
||||
TestModel string
|
||||
ValidationEndpoint string
|
||||
upstreamLock sync.Mutex
|
||||
|
||||
// Cached fields from the group for stale check
|
||||
channelType string
|
||||
@@ -96,6 +97,9 @@ func (b *BaseChannel) IsConfigStale(group *models.Group) bool {
|
||||
if b.TestModel != group.TestModel {
|
||||
return true
|
||||
}
|
||||
if b.ValidationEndpoint != group.ValidationEndpoint {
|
||||
return true
|
||||
}
|
||||
if !bytes.Equal(b.groupUpstreams, group.Upstreams) {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user