Skip to content

Commit 26b1c4e

Browse files
committed
Load security page components async (#190)
1 parent 3872678 commit 26b1c4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/AliasVault.Client/Main/Pages/Settings/Security/Security.razor

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
/// <returns>A task representing the asynchronous operation.</returns>
5151
private async Task LoadData()
5252
{
53-
// Currently with SQLite, we have to load the data sequentially as otherwise we get database locks.
54-
// When switched over to PostgreSQL, we can load the data concurrently.
55-
await TwoFactorSection!.LoadData();
56-
await QuickVaultUnlockSection!.LoadData();
57-
await SessionsSection!.LoadData();
58-
await RecentAuthLogsSection!.LoadData();
53+
await Task.WhenAll(
54+
TwoFactorSection!.LoadData(),
55+
QuickVaultUnlockSection!.LoadData(),
56+
SessionsSection!.LoadData(),
57+
RecentAuthLogsSection!.LoadData()
58+
);
5959
}
6060
}

0 commit comments

Comments
 (0)