Skip to content

Commit e38e04e

Browse files
authored
Merge pull request #1302 from nats-io/base-consume-options-creation-from-json
ConsumeOptions creation from json should use default, not minimum
2 parents 3a12b7a + f610164 commit e38e04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/nats/client/BaseConsumeOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public B json(String json) throws JsonParseException {
147147
public B jsonValue(JsonValue jsonValue) {
148148
messages(readInteger(jsonValue, MESSAGES, -1));
149149
bytes(readLong(jsonValue, BYTES, -1));
150-
expiresIn(readLong(jsonValue, EXPIRES_IN, MIN_EXPIRES_MILLS));
150+
expiresIn(readLong(jsonValue, EXPIRES_IN, DEFAULT_EXPIRES_IN_MILLIS));
151151
thresholdPercent(readInteger(jsonValue, THRESHOLD_PERCENT, -1));
152152
raiseStatusWarnings(readBoolean(jsonValue, RAISE_STATUS_WARNINGS, false));
153153
group(readStringEmptyAsNull(jsonValue, GROUP));

0 commit comments

Comments
 (0)