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

Add iter function for fetching hostmaps #1275

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maggie44
Copy link

@maggie44 maggie44 commented Nov 16, 2024

Changes:

  1. Two new functions:
ListHostmapHostsIter
ListHostmapIndexesIter

Provides the same functionality as listHostMapHosts and listHostMapIndexes but provides an iter (https://pkg.go.dev/iter) that can be looped over instead of making the entire ControlHostInfo slice before returning. It provides a more efficient means of accessing the hostmap.

@maggie44 maggie44 marked this pull request as draft November 16, 2024 12:39
@maggie44 maggie44 marked this pull request as ready for review March 6, 2025 18:00
@maggie44 maggie44 force-pushed the iter branch 2 times, most recently from 3b21b8e to dd75405 Compare March 7, 2025 20:57
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.

1 participant