Skip to content

Commit

Permalink
fix async build (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Oct 17, 2022
1 parent 9a476df commit ae3ced2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gitoxide-core/src/pack/receive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,19 @@ mod async_io {
}
}

pub async fn receive<P: Progress, W: io::Write + Send + 'static>(
pub async fn receive<P, W>(
protocol: Option<net::Protocol>,
url: &str,
directory: Option<PathBuf>,
refs_directory: Option<PathBuf>,
wanted_refs: Vec<BString>,
progress: P,
ctx: Context<W>,
) -> anyhow::Result<()> {
) -> anyhow::Result<()>
where
P: Progress + 'static,
W: io::Write + Send + 'static,
{
let transport = net::connect(url.to_string(), protocol.unwrap_or_default().into()).await?;
let mut delegate = CloneDelegate {
ctx,
Expand Down

0 comments on commit ae3ced2

Please sign in to comment.