increase timeout duration for file loads
This commit is contained in:
parent
f3b9a1f8d2
commit
430084a0f1
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use clap::{Parser, Subcommand};
|
||||
use core::time::Duration;
|
||||
use std::fs;
|
||||
use thiserror::Error;
|
||||
use serde::Deserialize;
|
||||
|
|
@ -133,6 +134,7 @@ impl Prusa {
|
|||
.header("Print-After-Upload", "0")
|
||||
.header("Overwrite", "0")
|
||||
.body(data)
|
||||
.timeout(Duration::from_secs(60))
|
||||
.send()?;
|
||||
let text = resp.text()?;
|
||||
println!("{text}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue