Skip to content

Commit 374227f

Browse files
authored
s/skip_saftey_assert/skip_safety_assert/ (#2097)
2 parents 99c7308 + 965df0d commit 374227f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libsql/src/database.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ enum DbType {
8484
path: String,
8585
flags: OpenFlags,
8686
encryption_config: Option<EncryptionConfig>,
87-
skip_saftey_assert: bool,
87+
skip_safety_assert: bool,
8888
},
8989
#[cfg(feature = "replication")]
9090
Sync {
@@ -166,7 +166,7 @@ cfg_core! {
166166
path: db_path.into(),
167167
flags,
168168
encryption_config: None,
169-
skip_saftey_assert: false,
169+
skip_safety_assert: false,
170170
},
171171
max_write_replication_index: Default::default(),
172172
})
@@ -458,7 +458,7 @@ cfg_replication! {
458458
DbType::Sync { db, .. } => {
459459
let path = db.path().to_string();
460460
Ok(Database {
461-
db_type: DbType::File { path, flags: OpenFlags::default(), encryption_config: None, skip_saftey_assert: false },
461+
db_type: DbType::File { path, flags: OpenFlags::default(), encryption_config: None, skip_safety_assert: false },
462462
max_write_replication_index: Default::default(),
463463
})
464464
}
@@ -580,11 +580,11 @@ impl Database {
580580
path,
581581
flags,
582582
encryption_config,
583-
skip_saftey_assert,
583+
skip_safety_assert,
584584
} => {
585585
use crate::local::impls::LibsqlConnection;
586586

587-
let db = if !skip_saftey_assert {
587+
let db = if !skip_safety_assert {
588588
crate::local::Database::open(path, *flags)?
589589
} else {
590590
unsafe { crate::local::Database::open_raw(path, *flags)? }

libsql/src/database/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ cfg_core! {
175175
/// Using this setting is very UNSAFE and you are expected to use the libsql in adherence
176176
/// with the sqlite3 threadsafe rules or else you WILL create undefined behavior. Use at
177177
/// your own risk.
178-
pub unsafe fn skip_saftey_assert(mut self, skip: bool) -> Builder<Local> {
178+
pub unsafe fn skip_safety_assert(mut self, skip: bool) -> Builder<Local> {
179179
self.inner.skip_safety_assert = skip;
180180
self
181181
}
@@ -206,7 +206,7 @@ cfg_core! {
206206
path,
207207
flags: self.inner.flags,
208208
encryption_config: self.inner.encryption_config,
209-
skip_saftey_assert: self.inner.skip_safety_assert
209+
skip_safety_assert: self.inner.skip_safety_assert
210210
},
211211
max_write_replication_index: Default::default(),
212212
}
@@ -321,7 +321,7 @@ cfg_replication! {
321321
/// Using this setting is very UNSAFE and you are expected to use the libsql in adherence
322322
/// with the sqlite3 threadsafe rules or else you WILL create undefined behavior. Use at
323323
/// your own risk.
324-
pub unsafe fn skip_saftey_assert(mut self, skip: bool) -> Builder<RemoteReplica> {
324+
pub unsafe fn skip_safety_assert(mut self, skip: bool) -> Builder<RemoteReplica> {
325325
self.inner.skip_safety_assert = skip;
326326
self
327327
}

0 commit comments

Comments
 (0)