想帮我的api装timeoutfittle(查询超过几秒就先回传给user)
下面是我的code
https://pastebin.com/8nVcwLQJ
但去打api的时候会跳
[GIN-debug] [WARNING] Headers were already written. Wanted to override status
code 504 with 200
panic: http: wrote more than the declared Content-Length
然后软件就crash了
请问是我timeoutFilterV3那边有问题吗