Skip to content

Commit

Permalink
add receive_progress option only when it is true
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Mar 27, 2024
1 parent 6869188 commit f8230a7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ public List<Object> marshal() {
marshaled.add(MESSAGE_TYPE);
marshaled.add(request);
Map<String, Object> options = new HashMap<>();
options.put("receive_progress", receiveProgress);
if (timeout > TIMEOUT_DEFAULT) {
options.put("timeout", timeout);
}
if (receiveProgress) {
options.put("receive_progress", true);
}
marshaled.add(options);
marshaled.add(procedure);
if (kwargs != null) {
Expand Down

0 comments on commit f8230a7

Please sign in to comment.