fix: add request timeout

This commit is contained in:
engigu
2024-01-08 23:43:43 +08:00
parent 2f85da86f2
commit 0d89d9939d
+1 -1
View File
@@ -13,7 +13,7 @@ type CustomWebhook struct {
}
var Client = &http.Client{
Timeout: 8 * time.Second,
Timeout: 5 * time.Second,
}
func (cw *CustomWebhook) Request(url string, msg string) ([]byte, error) {