From 50ede27166bef654c1b2f4e5e02562ed89399ab2 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 12 Nov 2024 19:01:06 +0200 Subject: [PATCH] fix example --- libsql/examples/offline_writes.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libsql/examples/offline_writes.rs b/libsql/examples/offline_writes.rs index 8135fe3426..e43278310a 100644 --- a/libsql/examples/offline_writes.rs +++ b/libsql/examples/offline_writes.rs @@ -24,16 +24,10 @@ async fn main() { }) .unwrap(); - let namespace = std::env::var("LIBSQL_NAMESPACE").ok(); - // The authentication token to use. let auth_token = std::env::var("LIBSQL_AUTH_TOKEN").unwrap_or("".to_string()); - let db_builder = if let Some(ns) = namespace { - Builder::new_synced_database(db_path, sync_url, auth_token).namespace(&ns) - } else { - Builder::new_synced_database(db_path, sync_url, auth_token) - }; + let db_builder = Builder::new_synced_database(db_path, sync_url, auth_token); let db = match db_builder.build().await { Ok(db) => db,