fix: add request timeout
This commit is contained in:
@@ -13,7 +13,7 @@ type CustomWebhook struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var Client = &http.Client{
|
var Client = &http.Client{
|
||||||
Timeout: 8 * time.Second,
|
Timeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cw *CustomWebhook) Request(url string, msg string) ([]byte, error) {
|
func (cw *CustomWebhook) Request(url string, msg string) ([]byte, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user