From 4f38254321a95f44592b151dfa011af2ff642821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= <37108907+DottoDev@users.noreply.github.com> Date: Fri, 27 Jan 2023 20:58:35 +0000 Subject: [PATCH] Adds notify-send timeout of 10s (#318) --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a0f81f5e..9db00fbb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use std::env; use std::io; use std::process::exit; +use std::time::Duration; use clap::CommandFactory; use clap::{crate_version, Parser}; @@ -517,8 +518,8 @@ fn run() -> Result<()> { "Topgrade finished {}", if failed { "with errors" } else { "successfully" } ), - None, - ); + Some(Duration::from_secs(10)), + ) } if failed {