File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,13 +201,10 @@ impl Database {
201201 rt. block_on ( builder. build ( ) ) . map_err ( Error :: from) ?
202202 } else if let Some ( options) = & opts {
203203 if let Some ( sync_url) = & options. syncUrl {
204- let auth_token = options
205- . authToken
206- . as_ref ( )
207- . cloned ( )
208- . unwrap_or_default ( ) ;
204+ let auth_token = options. authToken . as_ref ( ) . cloned ( ) . unwrap_or_default ( ) ;
209205
210- let mut builder = libsql:: Builder :: new_remote_replica ( path. clone ( ) , sync_url. clone ( ) , auth_token) ;
206+ let mut builder =
207+ libsql:: Builder :: new_remote_replica ( path. clone ( ) , sync_url. clone ( ) , auth_token) ;
211208
212209 if let Some ( period) = options. syncPeriod {
213210 if period > 0.0 {
@@ -336,10 +333,12 @@ impl Database {
336333 let value = value_js. get_int32 ( ) ?;
337334
338335 match value {
339- 0 => { // Authorization.ALLOW
336+ 0 => {
337+ // Authorization.ALLOW
340338 builder. allow ( & key) ;
341339 }
342- 1 => { // Authorization.DENY
340+ 1 => {
341+ // Authorization.DENY
343342 builder. deny ( & key) ;
344343 }
345344 _ => {
You can’t perform that action at this time.
0 commit comments