-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Unused Features Field on StreamOutput #44667
Remove Unused Features Field on StreamOutput #44667
Conversation
* Ever since b15d62c this field and all the methods around it seem completely unused (that commit removed the only use of the getter) and are in fact wasting some allocations => removed it
Pinging @elastic/es-core-infra |
} | ||
|
||
@Override | ||
public void writeTo(StreamOutput out) throws IOException { | ||
out.setFeatures(features); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was (and now would have been even more) a weird writeTo
that doesn't actually write anything in case of a response. Adjusted the abstractions a little here and just made the request overwrite the message write code to prefix messages with the features array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thanks @tbrooks8 ! |
are in fact wasting some allocations => removed it