From 31f8b44ad9722d55ccb465b8aa7cdbd5de980025 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Fri, 30 Dec 2022 14:54:39 +0100 Subject: [PATCH] Make Command async --- src/webhook.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webhook.rs b/src/webhook.rs index 11f6976..0983d17 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -1,4 +1,5 @@ -use std::{process::Command, sync::Arc}; +use std::sync::Arc; +use tokio::process::Command; use tracing::{error, info}; use crate::{config, db, mailer::Mailer, states}; @@ -23,6 +24,7 @@ impl Task { .args(&self.hook.args) .current_dir(&self.hook.current_dir) .output() + .await { Ok(output) => { stdout = output.stdout;