Skip to content

Commit

Permalink
Pass cancellation tokens to ReloadTypesAsync()
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 18, 2024
1 parent b9363f1 commit cbfc4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EFCore.PG/Migrations/Internal/NpgsqlMigrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public override async Task MigrateAsync(string? targetMigration, CancellationTok
await _connection.OpenAsync(cancellationToken).ConfigureAwait(false);
try
{
await npgsqlConnection.ReloadTypesAsync().ConfigureAwait(false);
await npgsqlConnection.ReloadTypesAsync(cancellationToken).ConfigureAwait(false);
}
catch
{
Expand Down
2 changes: 1 addition & 1 deletion src/EFCore.PG/Storage/Internal/NpgsqlDatabaseCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ await Dependencies.MigrationCommandExecutor.ExecuteNonQueryAsync(commands, conne
await npgsqlConnection.OpenAsync(cancellationToken).ConfigureAwait(false);
try
{
await npgsqlConnection.ReloadTypesAsync().ConfigureAwait(false);
await npgsqlConnection.ReloadTypesAsync(cancellationToken).ConfigureAwait(false);
}
catch
{
Expand Down

0 comments on commit cbfc4d6

Please sign in to comment.