Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
9384dd97
Commit
9384dd97
authored
9 years ago
by
yang-g
Browse files
Options
Downloads
Patches
Plain Diff
add comments
parent
a3c968d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cpp/common/channel_arguments.cc
+3
-0
3 additions, 0 deletions
src/cpp/common/channel_arguments.cc
with
3 additions
and
0 deletions
src/cpp/common/channel_arguments.cc
+
3
−
0
View file @
9384dd97
...
@@ -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
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment