Skip to content

Conversation

jitokim
Copy link
Contributor

@jitokim jitokim commented Apr 5, 2025

avoid potential Stream reuse by using fromIterable

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@tzolov tzolov added this to the 0.9.0 milestone Apr 6, 2025
@tzolov tzolov self-assigned this Apr 6, 2025
tzolov pushed a commit that referenced this pull request Apr 6, 2025
…109)

Replace Flux.fromStream(sessions.values().stream()) with more efficient
Flux.fromIterable(sessions.values()) to eliminate unnecessary stream
conversion when broadcasting messages to active sessions

Signed-off-by: jitokim <[email protected]>
@tzolov
Copy link
Contributor

tzolov commented Apr 6, 2025

Thank you @jitokim
rebased and merged at c3a7c1a

@tzolov tzolov closed this Apr 6, 2025
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