想幫我的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那邊有問題嗎