Files
steampipe/pkg/connection
Nathan Wallace 7e27df2d44 Fix #4791: Use idiomatic for-range pattern for error channel closes #4791 (#4835)
* Add test demonstrating bug #4791: Goroutine leak in executeUpdateSetsInParallel

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix #4791: Use idiomatic for-range pattern for error channel

Replace the for-select-nil-check pattern with the idiomatic for-range
pattern when consuming from the error channel. The for-range pattern:
- Automatically exits when the channel is closed
- Doesn't require manual nil checks
- Is more maintainable and less error-prone
- Follows Go best practices for channel consumption

This eliminates the potential for goroutine leaks if the nil check
were accidentally removed or modified in future maintenance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-16 14:11:31 -05:00
..