Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Anshu Agarwal <[email protected]>
  • Loading branch information
Anshu Agarwal committed Jan 4, 2023
1 parent ef429b2 commit 5ad7e3c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public void writeTo(StreamOutput out) throws IOException {
if (weightedRouting != null) {
weightedRouting.writeTo(out);
}
out.writeOptionalBoolean(discoveredMaster);
if (discoveredMaster != null) {
out.writeOptionalBoolean(discoveredMaster);
}
}

@Override
Expand Down

0 comments on commit 5ad7e3c

Please sign in to comment.