Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
e837d5a2
Commit
e837d5a2
authored
Nov 05, 2019
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deprecated method in GRPC Java test.
Change-Id: Iccae8fe9409adbf3cd3013a5cf3368e068175ad3
parent
9834ee97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
JavaGrpcTest.java
grpc/tests/JavaGrpcTest.java
+3
-3
No files found.
grpc/tests/JavaGrpcTest.java
View file @
e837d5a2
...
...
@@ -96,7 +96,7 @@ public class JavaGrpcTest {
if
(
monster
.
hp
()
>
maxHp
.
get
())
{
// Found a monster of higher hit points.
maxHp
.
set
(
monster
.
hp
());
maxHpMonsterName
.
set
(
monster
.
name
());
maxHpMonsterName
.
set
(
monster
.
name
());
maxHpCount
.
set
(
1
);
}
else
if
(
monster
.
hp
()
==
maxHp
.
get
())
{
...
...
@@ -141,7 +141,7 @@ public class JavaGrpcTest {
channel
=
ManagedChannelBuilder
.
forAddress
(
"localhost"
,
port
)
// Channels are secure by default (via SSL/TLS). For the example we disable TLS to avoid
// needing certificates.
.
usePlaintext
(
true
)
.
usePlaintext
()
.
directExecutor
()
.
build
();
blockingStub
=
MonsterStorageGrpc
.
newBlockingStub
(
channel
);
...
...
@@ -177,7 +177,7 @@ public class JavaGrpcTest {
final
CountDownLatch
streamAlive
=
new
CountDownLatch
(
1
);
StreamObserver
<
Stat
>
statObserver
=
new
StreamObserver
<
Stat
>()
{
public
void
onCompleted
()
{
public
void
onCompleted
()
{
streamAlive
.
countDown
();
}
public
void
onError
(
Throwable
ex
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment