Skip to content

Commit e7148b5

Browse files
committed
Fix Builder::remote_encryption() API usage
The libsql crate changed the API.
1 parent 0851ef6 commit e7148b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl Database {
258258
let encryption_context = libsql::EncryptionContext {
259259
key: libsql::EncryptionKey::Base64Encoded(encryption_key),
260260
};
261-
builder = builder.remote_encryption(Some(encryption_context));
261+
builder = builder.remote_encryption(encryption_context);
262262
}
263263
rt.block_on(builder.build()).map_err(Error::from)?
264264
} else if let Some(options) = &opts {
@@ -298,7 +298,7 @@ impl Database {
298298
remote_encryption_key.to_string(),
299299
),
300300
};
301-
builder = builder.remote_encryption(Some(encryption_context));
301+
builder = builder.remote_encryption(encryption_context);
302302
}
303303

304304
if let Some(period) = options.syncPeriod {

0 commit comments

Comments
 (0)