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
932d0272
Commit
932d0272
authored
8 years ago
by
Makarand Dharmapurikar
Browse files
Options
Downloads
Patches
Plain Diff
clang-format fixes
parent
61494432
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
src/core/lib/iomgr/network_status_tracker.c
+5
-5
5 additions, 5 deletions
src/core/lib/iomgr/network_status_tracker.c
test/core/end2end/tests/network_status_change.c
+0
-1
0 additions, 1 deletion
test/core/end2end/tests/network_status_change.c
with
5 additions
and
6 deletions
src/core/lib/iomgr/network_status_tracker.c
+
5
−
5
View file @
932d0272
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
*
*
*/
*/
#include
"src/core/lib/iomgr/endpoint.h"
#include
<grpc/support/alloc.h>
#include
<grpc/support/alloc.h>
#include
<grpc/support/log.h>
#include
<grpc/support/log.h>
#include
"src/core/lib/iomgr/endpoint.h"
typedef
struct
endpoint_ll_node
{
typedef
struct
endpoint_ll_node
{
grpc_endpoint
*
ep
;
grpc_endpoint
*
ep
;
...
@@ -51,7 +51,7 @@ void grpc_initialize_network_status_monitor() {
...
@@ -51,7 +51,7 @@ void grpc_initialize_network_status_monitor() {
}
}
void
grpc_destroy_network_status_monitor
()
{
void
grpc_destroy_network_status_monitor
()
{
for
(
endpoint_ll_node
*
curr
=
head
;
curr
!=
NULL
;
)
{
for
(
endpoint_ll_node
*
curr
=
head
;
curr
!=
NULL
;)
{
endpoint_ll_node
*
next
=
curr
->
next
;
endpoint_ll_node
*
next
=
curr
->
next
;
gpr_free
(
curr
);
gpr_free
(
curr
);
curr
=
next
;
curr
=
next
;
...
@@ -86,9 +86,9 @@ void grpc_network_status_unregister_endpoint(grpc_endpoint *ep) {
...
@@ -86,9 +86,9 @@ void grpc_network_status_unregister_endpoint(grpc_endpoint *ep) {
endpoint_ll_node
*
prev
=
head
;
endpoint_ll_node
*
prev
=
head
;
// if we're unregistering the head, just move head to the next
// if we're unregistering the head, just move head to the next
if
(
ep
==
head
->
ep
)
{
if
(
ep
==
head
->
ep
)
{
head
=
head
->
next
;
head
=
head
->
next
;
gpr_free
(
prev
);
gpr_free
(
prev
);
found
=
true
;
found
=
true
;
}
else
{
}
else
{
for
(
endpoint_ll_node
*
curr
=
head
->
next
;
curr
!=
NULL
;
curr
=
curr
->
next
)
{
for
(
endpoint_ll_node
*
curr
=
head
->
next
;
curr
!=
NULL
;
curr
=
curr
->
next
)
{
if
(
ep
==
curr
->
ep
)
{
if
(
ep
==
curr
->
ep
)
{
...
...
This diff is collapsed.
Click to expand it.
test/core/end2end/tests/network_status_change.c
+
0
−
1
View file @
932d0272
...
@@ -217,7 +217,6 @@ static void test_invoke_network_status_change(grpc_end2end_test_config config) {
...
@@ -217,7 +217,6 @@ static void test_invoke_network_status_change(grpc_end2end_test_config config) {
GPR_ASSERT
(
0
==
strcmp
(
call_details
.
host
,
"foo.test.google.fr"
));
GPR_ASSERT
(
0
==
strcmp
(
call_details
.
host
,
"foo.test.google.fr"
));
GPR_ASSERT
(
was_cancelled
==
0
);
GPR_ASSERT
(
was_cancelled
==
0
);
gpr_free
(
details
);
gpr_free
(
details
);
grpc_metadata_array_destroy
(
&
initial_metadata_recv
);
grpc_metadata_array_destroy
(
&
initial_metadata_recv
);
grpc_metadata_array_destroy
(
&
trailing_metadata_recv
);
grpc_metadata_array_destroy
(
&
trailing_metadata_recv
);
...
...
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