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:
parent
46ad6275ba
commit
31f8b44ad9
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue