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
dd093f33
Commit
dd093f33
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Remove some bad asserts
parent
74e5edab
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++/stream.h
+3
-3
3 additions, 3 deletions
include/grpc++/stream.h
src/cpp/server/server.cc
+1
-1
1 addition, 1 deletion
src/cpp/server/server.cc
with
4 additions
and
4 deletions
include/grpc++/stream.h
+
3
−
3
View file @
dd093f33
...
@@ -114,7 +114,7 @@ class ClientReader GRPC_FINAL : public ClientReaderInterface<R> {
...
@@ -114,7 +114,7 @@ class ClientReader GRPC_FINAL : public ClientReaderInterface<R> {
CallOpBuffer
buf
;
CallOpBuffer
buf
;
buf
.
AddRecvInitialMetadata
(
context_
);
buf
.
AddRecvInitialMetadata
(
context_
);
call_
.
PerformOps
(
&
buf
);
call_
.
PerformOps
(
&
buf
);
GPR_ASSERT
(
cq_
.
Pluck
(
&
buf
)
)
;
cq_
.
Pluck
(
&
buf
);
// status ignored
}
}
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
...
@@ -216,7 +216,7 @@ class ClientReaderWriter GRPC_FINAL : public ClientReaderWriterInterface<W, R> {
...
@@ -216,7 +216,7 @@ class ClientReaderWriter GRPC_FINAL : public ClientReaderWriterInterface<W, R> {
CallOpBuffer
buf
;
CallOpBuffer
buf
;
buf
.
AddSendInitialMetadata
(
&
context
->
send_initial_metadata_
);
buf
.
AddSendInitialMetadata
(
&
context
->
send_initial_metadata_
);
call_
.
PerformOps
(
&
buf
);
call_
.
PerformOps
(
&
buf
);
GPR_ASSERT
(
cq_
.
Pluck
(
&
buf
)
)
;
cq_
.
Pluck
(
&
buf
);
}
}
// Blocking wait for initial metadata from server. The received metadata
// Blocking wait for initial metadata from server. The received metadata
...
@@ -229,7 +229,7 @@ class ClientReaderWriter GRPC_FINAL : public ClientReaderWriterInterface<W, R> {
...
@@ -229,7 +229,7 @@ class ClientReaderWriter GRPC_FINAL : public ClientReaderWriterInterface<W, R> {
CallOpBuffer
buf
;
CallOpBuffer
buf
;
buf
.
AddRecvInitialMetadata
(
context_
);
buf
.
AddRecvInitialMetadata
(
context_
);
call_
.
PerformOps
(
&
buf
);
call_
.
PerformOps
(
&
buf
);
GPR_ASSERT
(
cq_
.
Pluck
(
&
buf
)
)
;
cq_
.
Pluck
(
&
buf
);
// status ignored
}
}
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
bool
Read
(
R
*
msg
)
GRPC_OVERRIDE
{
...
...
This diff is collapsed.
Click to expand it.
src/cpp/server/server.cc
+
1
−
1
View file @
dd093f33
...
@@ -149,7 +149,7 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag {
...
@@ -149,7 +149,7 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag {
}
}
buf
.
AddServerSendStatus
(
&
ctx_
.
trailing_metadata_
,
status
);
buf
.
AddServerSendStatus
(
&
ctx_
.
trailing_metadata_
,
status
);
call_
.
PerformOps
(
&
buf
);
call_
.
PerformOps
(
&
buf
);
GPR_ASSERT
(
cq_
.
Pluck
(
&
buf
)
)
;
cq_
.
Pluck
(
&
buf
);
/* status ignored */
void
*
ignored_tag
;
void
*
ignored_tag
;
bool
ignored_ok
;
bool
ignored_ok
;
cq_
.
Shutdown
();
cq_
.
Shutdown
();
...
...
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