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

Fixes for GetTrieNodesRequest disposing - debug check on ArrayPoolList #7862

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

damian-orzechowski
Copy link
Contributor

Fix for ArrayPoolList hasn't been disposed. message - when handling GetTrieNodesRequest - only in Debug builds

Changes

  • Add IDisposable to GetTrieNodesRequest

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

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@@ -65,7 +65,7 @@ public async Task Dispatch(PeerInfo peerInfo, StateSyncBatch batch, Cancellation
else
{
if (Logger.IsTrace) Logger.Trace($"Requested TrieNodes via SnapProtocol from peer {peer}");
GetTrieNodesRequest request = GetGroupedRequest(batch);
using GetTrieNodesRequest request = GetGroupedRequest(batch);
Copy link
Member

Choose a reason for hiding this comment

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

this will be disposed at the end of this request, when task can still be in progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants