Skip to content

Conversation

@altman08
Copy link

What problem does this PR solve?

Issue Number: resolve

Problem Summary:

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

@yanglimingcn
Copy link
Contributor

LGTM

Comment on lines +72 to +84
int AddChannel(ChannelBase* sub_channel, ChannelHandle* handle) {
return AddChannel(sub_channel, "", OWNS_CHANNEL, handle);
}
int AddChannel(ChannelBase* sub_channel, const std::string& tag,
ChannelHandle* handle) {
return AddChannel(sub_channel, tag, OWNS_CHANNEL, handle);
}
int AddChannel(ChannelBase* sub_channel, ChannelOwnership ownership,
ChannelHandle* handle) {
return AddChannel(sub_channel, "", ownership, handle);
}
int AddChannel(ChannelBase* sub_channel, const std::string& tag,
ChannelOwnership ownership, ChannelHandle* handle);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think AddChannel has a combinatorial explosion problem.

int AddChannel(SelectiveChannel::SubChannelOptions);

Using the SubChannelOptions overloaded AddChannel function would be more suitable, as it offers better extensibility.

In the meantime, please update the comments for the AddChannel function.

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.

3 participants