Skip to content
Snippets Groups Projects
Commit 9384dd97 authored by yang-g's avatar yang-g
Browse files

add comments

parent a3c968d9
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,9 @@ void ChannelArguments::SetCompressionAlgorithm( ...@@ -91,6 +91,9 @@ void ChannelArguments::SetCompressionAlgorithm(
} }
// Note: a second call to this will add in front the result of the first call. // Note: a second call to this will add in front the result of the first call.
// An example is calling this on a copy of ChannelArguments which already has a
// prefix. The user can build up a prefix string by calling this multiple times,
// each with more significant identifier.
void ChannelArguments::SetUserAgentPrefix( void ChannelArguments::SetUserAgentPrefix(
const grpc::string& user_agent_prefix) { const grpc::string& user_agent_prefix) {
if (user_agent_prefix.empty()) { if (user_agent_prefix.empty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment