1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-06 03:00:24 +08:00

add timeout

This commit is contained in:
源文雨
2023-10-16 12:46:21 +09:00
parent 415bd574f1
commit 160703f827
2 changed files with 8 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ func (bot *Bot) dohttprequest(constructer HTTPRequsetConstructer, ep, contenttyp
if err != nil {
return errors.Wrap(err, getCallerFuncName())
}
resp, err := http.DefaultClient.Do(req)
resp, err := bot.client.Do(req)
if err != nil {
return errors.Wrap(err, getCallerFuncName())
}