Skip to content

Refactor #8254, fix missing using#8397

Merged
LukaszRozmej merged 1 commit into
masterfrom
refactor/8254
Mar 20, 2025
Merged

Refactor #8254, fix missing using#8397
LukaszRozmej merged 1 commit into
masterfrom
refactor/8254

Conversation

@LukaszRozmej

Copy link
Copy Markdown
Member

Changes

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description


IForwardHeaderProvider forwardHeader = ctx.ForwardHeaderProvider;
await forwardHeader.GetBlockHeaders(0, 128, default);
using IOwnedReadOnlyList<BlockHeader?>? _ = await forwardHeader.GetBlockHeaders(0, 128, default);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

missing using?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes

while (true)
{
IOwnedReadOnlyList<BlockHeader?>? headers = await _forwardHeaderProvider.GetBlockHeaders(blocksRequest.NumberOfLatestBlocksToBeIgnored ?? 0, _syncBatchSize.Current, cancellation);
using IOwnedReadOnlyList<BlockHeader?>? headers = await _forwardHeaderProvider.GetBlockHeaders(blocksRequest.NumberOfLatestBlocksToBeIgnored ?? 0, _syncBatchSize.Current, cancellation);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

missing using

Comment on lines +50 to +54
set
{
_lastResponseBatch?.Dispose();
_lastResponseBatch = value;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

More cohesive handling of dispose old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants