increase timeout duration for file loads

This commit is contained in:
sigil-03 2024-08-20 19:17:42 -06:00
parent f3b9a1f8d2
commit 430084a0f1

View file

@ -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}");