Skip to content

Commit 151564e

Browse files
committed
Making sure we resume the same thread after initialising connection
1 parent 150062a commit 151564e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/magic.library/internals/SQLiteInitializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ internal class SQLiteInitializer : IInitializer
1919
public async Task Initialize(SqliteConnection connection)
2020
{
2121
await connection.OpenAsync();
22-
await EnsureVectorLoadedAsync(connection).ConfigureAwait(false);
22+
await EnsureVectorLoadedAsync(connection);
2323
}
2424

2525
/*
2626
* Ensures serialized initialization of vector lib.
2727
*/
2828
private static async Task EnsureVectorLoadedAsync(SqliteConnection connection)
2929
{
30-
await _lock.WaitAsync().ConfigureAwait(false);
30+
await _lock.WaitAsync();
3131
try
3232
{
3333
connection.LoadExtension("./sqlite-plugins/vector");

0 commit comments

Comments
 (0)