From 430084a0f17fb4ae53948dd1ee72d7e185e144e3 Mon Sep 17 00:00:00 2001 From: sigil-03 Date: Tue, 20 Aug 2024 19:17:42 -0600 Subject: [PATCH] increase timeout duration for file loads --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) 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}");