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

Uses enum to specify if AccountsIndexIterator should return items sorted or not #4937

Merged

Conversation

brooksprumo
Copy link

@brooksprumo brooksprumo commented Feb 12, 2025

Problem

The collect_all_unsorted field on the accounts index iterator is sometimes cumbersome due to (1) it being a bool, and (2) it feeling backwards/negative from its true/false meaning.

Summary of Changes

Use an enum instead. This way it is self documenting.

Note this PR purposely doesn't change collect_all_unsorted in ScanConfig. That'll be another PR.

@brooksprumo brooksprumo self-assigned this Feb 12, 2025
@brooksprumo brooksprumo force-pushed the scan-config/unsorted/index-iterator branch from 87e73fc to f082da2 Compare February 12, 2025 12:14
@brooksprumo brooksprumo marked this pull request as ready for review February 12, 2025 12:16
Copy link

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm. thanks!

@brooksprumo brooksprumo merged commit e9e0e40 into anza-xyz:master Feb 12, 2025
47 checks passed
@brooksprumo brooksprumo deleted the scan-config/unsorted/index-iterator branch February 12, 2025 18:02
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