Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexStore: Make SmartHeaderChain property private #11378

Merged

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Aug 25, 2023

This is more correct way to pass dependencies.

@@ -251,7 +251,7 @@ public async Task AddNewFiltersAsync(IEnumerable<FilterModel> filters)
{
using (await IndexLock.LockAsync(CancellationToken.None).ConfigureAwait(false))
{
await using SqliteTransaction sqliteTransaction = IndexStorage.BeginTransaction();
using SqliteTransaction sqliteTransaction = IndexStorage.BeginTransaction();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await is not necessary here (it emits a warning) because async is not supported by sqlite (https://learn.microsoft.com/en-gb/dotnet/standard/data/sqlite/async)

@@ -70,7 +70,7 @@ public IndexStore(string workFolderPath, Network network, SmartHeaderChain smart
/// <summary>Run migration if SQLite file does not exist.</summary>
private bool RunMigration { get; }

public SmartHeaderChain SmartHeaderChain { get; }
private SmartHeaderChain SmartHeaderChain { get; }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main change.

@kiminuo kiminuo requested a review from adamPetho August 25, 2023 13:37
@kiminuo kiminuo marked this pull request as ready for review August 25, 2023 13:37
Copy link
Collaborator

@turbolay turbolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cACK and code LGTM

@kiminuo kiminuo requested a review from yahiheb August 25, 2023 16:34
@kiminuo kiminuo merged commit b518df2 into WalletWasabi:master Sep 4, 2023
7 checks passed
@kiminuo kiminuo deleted the feature/2023-08-25-deps-cleanup branch September 4, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants