Skip to content

Commit

Permalink
fix: PR review fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Nov 8, 2024
1 parent c82d6b3 commit 52d112a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.hedera.block.server.pbj;

import static com.hedera.block.server.Constants.FULL_SERVICE_NAME_BLOCK_ACCESS;
import static com.hedera.block.server.Constants.SERVICE_NAME_BLOCK_ACCESS;

import com.hedera.pbj.runtime.grpc.ServiceInterface;
Expand Down Expand Up @@ -57,7 +58,7 @@ default String serviceName() {
*/
@NonNull
default String fullName() {
return "com.hedera.hapi.block." + SERVICE_NAME_BLOCK_ACCESS;
return FULL_SERVICE_NAME_BLOCK_ACCESS;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ SingleBlockResponse singleBlock(SingleBlockRequest singleBlockRequest) {
@NonNull
private SingleBlockRequest parseSingleBlockRequest(
@NonNull final Bytes message, @NonNull final RequestOptions options) throws ParseException {
// Copying bytes to avoid using references passed from Helidon
// TODO: Copying bytes to avoid using references passed from Helidon. Investigate if this is necessary.
return SingleBlockRequest.PROTOBUF.parse(Bytes.wrap(message.toByteArray()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void subscribeBlockStream(
@NonNull
private SubscribeStreamRequest parseSubscribeStreamRequest(
@NonNull final Bytes message, @NonNull final RequestOptions options) throws ParseException {
// Copying bytes to avoid using references passed from Helidon
// TODO: Copying bytes to avoid using references passed from Helidon. Investigate if this is necessary.
return SubscribeStreamRequest.PROTOBUF.parse(Bytes.wrap(message.toByteArray()));

Check warning on line 182 in server/src/main/java/com/hedera/block/server/pbj/PbjBlockStreamServiceProxy.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/com/hedera/block/server/pbj/PbjBlockStreamServiceProxy.java#L182

Added line #L182 was not covered by tests
}

Expand All @@ -191,7 +191,7 @@ private Bytes createSubscribeStreamResponse(
@NonNull
private PublishStreamRequest parsePublishStreamRequest(
@NonNull final Bytes message, @NonNull final RequestOptions options) throws ParseException {
// Copying bytes to avoid using references from Helidon
// TODO: Copying bytes to avoid using references passed from Helidon. Investigate if this is necessary.
return PublishStreamRequest.PROTOBUF.parse(Bytes.wrap(message.toByteArray()));

Check warning on line 195 in server/src/main/java/com/hedera/block/server/pbj/PbjBlockStreamServiceProxy.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/com/hedera/block/server/pbj/PbjBlockStreamServiceProxy.java#L195

Added line #L195 was not covered by tests
}

Expand Down

0 comments on commit 52d112a

Please sign in to comment.