diff --git a/src/main.rs b/src/main.rs index fa84233..7b0b4a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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}");