1
0
Fork 0
mirror of https://codeberg.org/Mo8it/git-webhook-client synced 2024-10-18 07:22:39 +00:00

Make Command async

This commit is contained in:
Mo 2022-12-30 14:54:39 +01:00
parent 46ad6275ba
commit 31f8b44ad9

View file

@ -1,4 +1,5 @@
use std::{process::Command, sync::Arc}; use std::sync::Arc;
use tokio::process::Command;
use tracing::{error, info}; use tracing::{error, info};
use crate::{config, db, mailer::Mailer, states}; use crate::{config, db, mailer::Mailer, states};
@ -23,6 +24,7 @@ impl Task {
.args(&self.hook.args) .args(&self.hook.args)
.current_dir(&self.hook.current_dir) .current_dir(&self.hook.current_dir)
.output() .output()
.await
{ {
Ok(output) => { Ok(output) => {
stdout = output.stdout; stdout = output.stdout;