Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from xander34/master
Browse files Browse the repository at this point in the history
fix: Type Registry required when printing Json
  • Loading branch information
huynhminhtan authored Mar 6, 2022
2 parents 5306623 + 3a1c2a4 commit 4f0539e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vn/zalopay/benchmark/core/ClientCaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public String buildRequestAndMetadata(String jsonData, String metadata) {
metadataMap.clear();
metadataMap.putAll(buildHashMetadata(metadata));
requestMessages = Reader.create(methodDescriptor.getInputType(), jsonData, registry).read();
return JsonFormat.printer().includingDefaultValueFields().print(requestMessages.get(0));
return JsonFormat.printer().includingDefaultValueFields().usingTypeRegistry(registry).print(requestMessages.get(0));
} catch (IllegalArgumentException e) {
shutdownNettyChannel();
throw e;
Expand Down

0 comments on commit 4f0539e

Please sign in to comment.