fix(aiproxy): handle response body closure and inspect return types

This commit is contained in:
2026-10-07 23:41:28 +02:00
parent 63cb0d22eb
commit d2f33b8f7d
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ func (p *Proxy) Reload(ctx context.Context, store UpstreamStore) error {
var retired []*target
p.mu.Lock()
for _, d := range defs {
for i := range defs {
d := defs[i]
name := d.Upstream.Name
if _, dup := next[name]; dup {
errs = append(errs, fmt.Errorf("aiproxy: duplicate stored upstream %q", name))