Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
m-hilgendorf committed Jan 15, 2025
1 parent 7a2d49d commit b76b821
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/server/src/tag/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ impl Server {
.data;
list.into_iter()
.filter_map(|output| {
// Skip objects that can't be packages.
let directory = output.item.right()?.try_unwrap_directory().ok()?;
let server = self.clone();
let remote = remote.clone().unwrap_or_else(|| "default".to_owned());
let future = async move {
// Pull the object
let arg = tg::object::pull::Arg { remote };
let stream = server.pull_object(&directory.into(), arg).await?;

// Drain the stream.
let mut stream = std::pin::pin!(stream);
while let Some(_event) = stream.try_next().await? {
()
}
while let Some(_event) = stream.try_next().await? {}
Ok::<_, tg::Error>(())
};
Some(future)
Expand Down

0 comments on commit b76b821

Please sign in to comment.