Skip to content

Commit

Permalink
Remove TODO in MaxSizeCondition (#52854)
Browse files Browse the repository at this point in the history
Similar to what we did in #52794, this removes the TODO.

Relates again to #52505
  • Loading branch information
dakrone authored Feb 27, 2020
1 parent dffdff1 commit 8bac8a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public String getWriteableName() {

@Override
public void writeTo(StreamOutput out) throws IOException {
// While we technically could serialize this would out.writeTimeValue(...), that would
// While we technically could serialize this with out.writeTimeValue(...), that would
// require doing the song and dance around backwards compatibility for this value. Since
// in this case the deserialized version is not displayed to a user, it's okay to simply use
// milliseconds. It's possible to lose precision if someone were to say, specify 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public String getWriteableName() {

@Override
public void writeTo(StreamOutput out) throws IOException {
//TODO here we should just use ByteSizeValue#writeTo and same for de-serialization in the constructor
// While we technically could serialize this with value.writeTo(...), that would
// require doing the song and dance around backwards compatibility for this value. Since
// in this case the deserialized version is not displayed to a user, it's okay to simply use
// bytes.
out.writeVLong(value.getBytes());
}

Expand Down

0 comments on commit 8bac8a3

Please sign in to comment.