Skip to content

Commit

Permalink
fix example logs
Browse files Browse the repository at this point in the history
  • Loading branch information
arilotter committed Nov 18, 2024
1 parent 7764fac commit b83d67f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
if !exists {
return Err(ApiError::GatedRepoError("repo does not exist".to_string()).into());
} else {
println!("repo exists!");
log::info!("repo exists!");
}

let is_writable = api_repo.is_writable().await;
if !is_writable {
return Err(ApiError::GatedRepoError("repo is not writable".to_string()).into());
} else {
println!("repo is writable!");
log::info!("repo is writable!");
}

let files = [
(
format!("im a tiny file {:?}", Instant::now())
Expand Down Expand Up @@ -76,7 +77,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
false,
)
.await?;
log::info!("{:?}", res);
log::info!("commit result: {:?}", res);
log::info!("Success!!");
Ok(())
}

0 comments on commit b83d67f

Please sign in to comment.