Skip to content

Commit

Permalink
fix: removed RequestOptions parameter per code review
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 25, 2024
1 parent 5961b4e commit 5d5773c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Pipeline<? super Bytes> open(
final var m = (BlockAccessMethod) method;
return switch (m) {
case singleBlock -> Pipelines.<SingleBlockRequest, SingleBlockResponseUnparsed>unary()
.mapRequest(bytes -> parseSingleBlockRequest(bytes, options))
.mapRequest(bytes -> parseSingleBlockRequest(bytes))
.method(this::singleBlock)
.mapResponse(reply -> createSingleBlockResponse(reply, options))
.respondTo(replies)
Expand Down Expand Up @@ -143,8 +143,7 @@ SingleBlockResponseUnparsed singleBlock(SingleBlockRequest singleBlockRequest) {
}

@NonNull
private SingleBlockRequest parseSingleBlockRequest(
@NonNull final Bytes message, @NonNull final RequestOptions options) throws ParseException {
private SingleBlockRequest parseSingleBlockRequest(@NonNull final Bytes message) throws ParseException {
return SingleBlockRequest.PROTOBUF.parse(message);
}

Expand Down

0 comments on commit 5d5773c

Please sign in to comment.