Skip to content

Commit d58bc90

Browse files
committed
Rebase master
1 parent 71f20c4 commit d58bc90

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/devolutions-pedm/src/api/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ pub async fn serve(config: Config, shutdown_signal: ShutdownSignal) -> Result<()
182182

183183
// Update the list of accounts in the database.
184184

185-
// SAFETY: uses `NetUserEnum` and `LookupAccountNameW` from `windows`
185+
// Get the system's accounts and update if needed.
186186
let accounts = list_accounts()?;
187-
188187
let db_accounts = db.get_accounts().await?;
189188
info!("Accounts retrieved successfully");
190189
let diff = diff_accounts(&db_accounts, &accounts);

crates/devolutions-pedm/src/db/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub(crate) struct DbAsyncBridgeTask {
283283
}
284284

285285
impl DbAsyncBridgeTask {
286-
pub fn new(db: Db) -> (DbHandle, Self) {
286+
pub(crate) fn new(db: Db) -> (DbHandle, Self) {
287287
let (tx, rx) = tokio::sync::mpsc::channel(8);
288288
(DbHandle { tx }, Self { db, rx })
289289
}

0 commit comments

Comments
 (0)