Skip to content

Commit

Permalink
fix: change toString to value in TopicStatsClient (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmere-google committed Aug 19, 2020
1 parent a4ca349 commit 30f0b10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -51,5 +51,6 @@ ApiFuture<ComputeMessageStatsResponse> computeMessageStats(
*
* @throws StatusException on a failure to properly terminate.
*/
@Override
void close() throws StatusException;
}
Expand Up @@ -110,7 +110,7 @@ public ApiFuture<ComputeMessageStatsResponse> computeMessageStats(
() -> {
return stub.computeMessageStats(
ComputeMessageStatsRequest.newBuilder()
.setTopic(path.toString())
.setTopic(path.value())
.setPartition(partition.value())
.setStartCursor(Cursor.newBuilder().setOffset(start.value()).build())
.setEndCursor(Cursor.newBuilder().setOffset(end.value()).build())
Expand Down
Expand Up @@ -96,7 +96,7 @@ private static Offset end() {

private static ComputeMessageStatsRequest request() {
return ComputeMessageStatsRequest.newBuilder()
.setTopic(path().toString())
.setTopic(path().value())
.setPartition(partition().value())
.setStartCursor(Cursor.newBuilder().setOffset(start().value()).build())
.setEndCursor(Cursor.newBuilder().setOffset(end().value()).build())
Expand Down

0 comments on commit 30f0b10

Please sign in to comment.