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 #61 from skarpushin/master
Browse files Browse the repository at this point in the history
Include default field values. This addresses #59
  • Loading branch information
huynhminhtan authored Jul 31, 2021
2 parents 62e186d + f976445 commit 06b1b94
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 @@ -112,7 +112,7 @@ public boolean isTerminated() {
public String buildRequest(String jsonData) {
try {
requestMessages = Reader.create(methodDescriptor.getInputType(), jsonData, registry).read();
return JsonFormat.printer().print(requestMessages.get(0));
return JsonFormat.printer().includingDefaultValueFields().print(requestMessages.get(0));
} catch (Exception e) {
shutdownNettyChannel();
throw new RuntimeException("Caught exception while parsing request for rpc", e);
Expand Down

0 comments on commit 06b1b94

Please sign in to comment.