fix(后端): 修复 lint 失败并清理无用代码
修正测试中的 APIKey 名称引用 移除不可达返回与未使用函数 统一 gofmt 格式并处理 Close 错误
This commit is contained in:
@@ -72,7 +72,7 @@ func TestOpenAIStreamingTooLong(t *testing.T) {
|
||||
}
|
||||
|
||||
go func() {
|
||||
defer pw.Close()
|
||||
defer func() { _ = pw.Close() }()
|
||||
// 写入超过 MaxLineSize 的单行数据,触发 ErrTooLong
|
||||
payload := "data: " + strings.Repeat("a", 128*1024) + "\n"
|
||||
_, _ = pw.Write([]byte(payload))
|
||||
|
||||
Reference in New Issue
Block a user