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

implementation of PUBSUB SHARDCHANNELS #2793

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

atakavci
Copy link
Collaborator

implementation for #2756

due to its similarity, implemented in the same way with PUBSUB CHANNELS command.
Upon completion of the SUBSCRIBE command, test classes need rework just to uncomment the assertions.

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

@atakavci atakavci changed the title implementation of PUBSUB SHARDCHANNELS / issue #2756 implementation of PUBSUB SHARDCHANNELS Mar 19, 2024
Copy link
Collaborator

@tishun tishun left a comment

Choose a reason for hiding this comment

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

Looks awesome to me

@mp911de what do you think?

@@ -1635,6 +1636,16 @@ public Mono<Map<K, Long>> pubsubNumsub(K... channels) {
return createMono(() -> commandBuilder.pubsubNumsub(channels));
}

@Override
public Flux<K> pubsubShardChannels() {
return createDissolvingFlux(() -> commandBuilder.pubsubShardChannels());
Copy link
Collaborator

Choose a reason for hiding this comment

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

note (not important) : could use the short syntax here, similar to line 1620

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replaced with method reference

@tishun tishun merged commit fa182b7 into redis:main Mar 26, 2024
1 check passed
@tishun tishun added the type: feature A new feature label Apr 5, 2024
@tishun tishun modified the milestones: 7.0.0.RELEASE, 6.4.0.RELEASE Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants