Skip to content

Commit

Permalink
chore: improve readonly example
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-229 committed Aug 14, 2024
1 parent b8e2643 commit 6be3cad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integrations/cloudfilter/examples/readonly.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, path::PathBuf};
use std::env;

use cloud_filter::root::{
HydrationType, PopulationType, SecurityId, Session, SyncRootIdBuilder, SyncRootInfo,
Expand Down Expand Up @@ -45,8 +45,8 @@ async fn main() {
let connection = Session::new()
.connect_async(
&client_path,
cloudfilter_opendal::CloudFilter::new(op, PathBuf::from(&client_path)),
move |f| handle.clone().block_on(f),
cloudfilter_opendal::CloudFilter::new(op, client_path.clone().into()),
move |f| handle.block_on(f),
)
.expect("create session");

Expand Down

0 comments on commit 6be3cad

Please sign in to comment.