Skip to content

Commit

Permalink
Update GrpcMessageProtocolResolver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xwm1992 authored Dec 15, 2022
1 parent 2ba5029 commit 99c92ca
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ private static CloudEventBuilder builderCloudEventBuilder(RequestHeader header,
.withExtension(ProtocolKey.PROTOCOL_VERSION, protocolVersion);

}

private static String getEventExtension(CloudEvent event, String protocolKey) {
return Objects.requireNonNull(event.getExtension(protocolKey)).toString();
}

private static String getEventExtension(CloudEvent event, String protocolKey, String defaultValue) {
Object extension = event.getExtension(protocolKey);
Expand Down

0 comments on commit 99c92ca

Please sign in to comment.