mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 11:35:05 +08:00
add a timeout to the webhook
This commit is contained in:
parent
18f17ed728
commit
f2f1367ec3
@ -1396,6 +1396,7 @@ impl IndexScheduler {
|
|||||||
// let reader = GzEncoder::new(BufReader::new(task_reader), Compression::default());
|
// let reader = GzEncoder::new(BufReader::new(task_reader), Compression::default());
|
||||||
let reader = GzEncoder::new(BufReader::new(task_reader), Compression::default());
|
let reader = GzEncoder::new(BufReader::new(task_reader), Compression::default());
|
||||||
let request = ureq::post(url)
|
let request = ureq::post(url)
|
||||||
|
.timeout(Duration::from_secs(30))
|
||||||
.set("Content-Encoding", "gzip")
|
.set("Content-Encoding", "gzip")
|
||||||
.set("Content-Type", "application/x-ndjson");
|
.set("Content-Type", "application/x-ndjson");
|
||||||
let request = match &self.webhook_authorization_header {
|
let request = match &self.webhook_authorization_header {
|
||||||
|
Loading…
Reference in New Issue
Block a user