Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit a39ca3b

Browse files
committed
fmt
1 parent 1bfe416 commit a39ca3b

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

sqld/src/connection/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl Default for DatabaseConfig {
4343
}
4444
}
4545

46-
4746
impl DatabaseConfigStore {
4847
pub fn load(db_path: &Path) -> Result<Self> {
4948
let config_path = db_path.join("config.json");

sqld/src/connection/libsql.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ where
208208
current_frame_no_receiver,
209209
state,
210210
)?;
211-
conn.conn.pragma_update(None, "max_page_count", max_db_size)?;
211+
conn.conn
212+
.pragma_update(None, "max_page_count", max_db_size)?;
212213
Ok(conn)
213214
})
214215
.await

sqld/src/namespace/fork.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use crate::{BLOCKING_RT, LIBSQL_PAGE_SIZE};
1717

1818
use super::{MakeNamespace, NamespaceName, ResetCb, RestoreOption};
1919

20-
2120
type Result<T> = crate::Result<T, ForkError>;
2221

2322
#[derive(Debug, thiserror::Error)]

sqld/src/replication/primary/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use tokio::sync::watch;
1616
use tokio::time::{Duration, Instant};
1717
use uuid::Uuid;
1818

19-
use crate::LIBSQL_PAGE_SIZE;
2019
use crate::libsql_bindings::ffi::SQLITE_IOERR_WRITE;
2120
use crate::libsql_bindings::ffi::{
2221
sqlite3,
@@ -27,6 +26,7 @@ use crate::libsql_bindings::wal_hook::WalHook;
2726
use crate::replication::frame::{Frame, FrameHeader};
2827
use crate::replication::snapshot::{find_snapshot_file, LogCompactor, SnapshotFile};
2928
use crate::replication::{FrameNo, SnapshotCallback, CRC_64_GO_ISO, WAL_MAGIC};
29+
use crate::LIBSQL_PAGE_SIZE;
3030

3131
init_static_wal_method!(REPLICATION_METHODS, ReplicationLoggerHook);
3232

sqld/src/replication/replica/hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use sqld_libsql_bindings::ffi::Wal;
66
use sqld_libsql_bindings::init_static_wal_method;
77
use sqld_libsql_bindings::{ffi::types::XWalFrameFn, wal_hook::WalHook};
88

9-
use crate::LIBSQL_PAGE_SIZE;
109
use crate::replication::frame::{Frame, FrameBorrowed};
1110
use crate::replication::FrameNo;
11+
use crate::LIBSQL_PAGE_SIZE;
1212

1313
use super::snapshot::TempSnapshot;
1414

0 commit comments

Comments
 (0)