1
0
Fork 0
mirror of https://codeberg.org/Mo8it/git-webhook-client synced 2024-11-21 11:06:32 +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 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;