Skip to content

Commit 1dc5541

Browse files
committed
Merge branch 'main' of github.com:Qoba-ai/MeTTa-KG
2 parents 59b3dd4 + b73486d commit 1dc5541

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

api/src/mork_api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ impl MorkApiClient {
147147
http_request = http_request.json(&body);
148148
}
149149

150+
http_request = http_request.timeout(request.timeout());
150151
match http_request.send().await {
151152
Ok(resp) => match resp.text().await {
152153
Ok(text) => Ok(text),
@@ -170,6 +171,9 @@ pub trait Request {
170171
fn body(&self) -> Option<Self::Body> {
171172
None
172173
}
174+
fn timeout(&self) -> std::time::Duration {
175+
std::time::Duration::from_secs(20)
176+
}
173177
}
174178

175179
#[derive(Serialize, Deserialize, Clone, Default)]

api/src/routes/translations.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,18 @@ pub struct CSVParserParameters {
2222
}
2323

2424
#[derive(FromForm, Clone)]
25-
#[allow(dead_code)]
2625
pub struct NTParserParameters {
2726
// TODO: figure out how to deal with this normally empty struct
2827
pub dummy: String,
2928
}
3029

3130
#[derive(FromForm, Clone)]
32-
#[allow(dead_code)]
3331
pub struct N3ParserParameters {
3432
// TODO: figure out how to deal with this normally empty struct
3533
pub dummy: String,
3634
}
3735

3836
#[derive(FromForm, Clone)]
39-
#[allow(dead_code)]
4037
pub struct JSONLDParserParameters {
4138
// TODO: figure out how to deal with this normally empty struct
4239
pub dummy: String,

0 commit comments

Comments
 (0)