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
f6b622c0
Commit
f6b622c0
authored
7 years ago
by
Muxi Yan
Browse files
Options
Downloads
Patches
Plain Diff
Take grpc_workaround_list as parameter
parent
7aa3a7fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc++/server_builder.h
+2
-1
2 additions, 1 deletion
include/grpc++/server_builder.h
src/cpp/server/server_builder.cc
+1
-2
1 addition, 2 deletions
src/cpp/server/server_builder.cc
with
3 additions
and
3 deletions
include/grpc++/server_builder.h
+
2
−
1
View file @
f6b622c0
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
#include
<grpc/compression.h>
#include
<grpc/compression.h>
#include
<grpc/support/cpu.h>
#include
<grpc/support/cpu.h>
#include
<grpc/support/useful.h>
#include
<grpc/support/useful.h>
#include
<grpc/support/workaround_list.h>
struct
grpc_resource_quota
;
struct
grpc_resource_quota
;
...
@@ -187,7 +188,7 @@ class ServerBuilder {
...
@@ -187,7 +188,7 @@ class ServerBuilder {
/// Enable a server workaround. Do not use unless you know what the workaround
/// Enable a server workaround. Do not use unless you know what the workaround
/// does. For explanation and detailed descriptions of workarounds, see
/// does. For explanation and detailed descriptions of workarounds, see
/// doc/workarounds.md.
/// doc/workarounds.md.
ServerBuilder
&
EnableWorkaround
(
uint32_
t
id
);
ServerBuilder
&
EnableWorkaround
(
grpc_workaround_lis
t
id
);
private
:
private
:
friend
class
::
grpc
::
testing
::
ServerBuilderPluginTest
;
friend
class
::
grpc
::
testing
::
ServerBuilderPluginTest
;
...
...
This diff is collapsed.
Click to expand it.
src/cpp/server/server_builder.cc
+
1
−
2
View file @
f6b622c0
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#include
<grpc/support/cpu.h>
#include
<grpc/support/cpu.h>
#include
<grpc/support/log.h>
#include
<grpc/support/log.h>
#include
<grpc/support/useful.h>
#include
<grpc/support/useful.h>
#include
<grpc/support/workaround_list.h>
#include
"src/cpp/server/thread_pool_interface.h"
#include
"src/cpp/server/thread_pool_interface.h"
...
@@ -359,7 +358,7 @@ void ServerBuilder::InternalAddPluginFactory(
...
@@ -359,7 +358,7 @@ void ServerBuilder::InternalAddPluginFactory(
(
*
g_plugin_factory_list
).
push_back
(
CreatePlugin
);
(
*
g_plugin_factory_list
).
push_back
(
CreatePlugin
);
}
}
ServerBuilder
&
ServerBuilder
::
EnableWorkaround
(
uint32_
t
id
)
{
ServerBuilder
&
ServerBuilder
::
EnableWorkaround
(
grpc_workaround_lis
t
id
)
{
switch
(
id
)
{
switch
(
id
)
{
case
GRPC_WORKAROUND_ID_CRONET_COMPRESSION
:
case
GRPC_WORKAROUND_ID_CRONET_COMPRESSION
:
return
AddChannelArgument
(
GRPC_ARG_WORKAROUND_CRONET_COMPRESSION
,
1
);
return
AddChannelArgument
(
GRPC_ARG_WORKAROUND_CRONET_COMPRESSION
,
1
);
...
...
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