Skip to content

Commit

Permalink
Fix streaming functions for LegacySNSMessage (#324) (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Agrawal <[email protected]>

Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 84b4ee3)

Co-authored-by: Ashish Agrawal <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and lezzago authored Jan 24, 2023
1 parent 97dc905 commit 17f9b49
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ private LegacySNSMessage(

public LegacySNSMessage(StreamInput streamInput) throws java.io.IOException {
super(streamInput);
this.subject = streamInput.readString();
this.message = super.getMessageContent();
this.subject = streamInput.readString();
this.roleArn = streamInput.readString();
this.topicArn = streamInput.readString();
this.clusterName = streamInput.readString();
Expand Down Expand Up @@ -148,7 +148,6 @@ public String getClusterName() {
public void writeTo(StreamOutput streamOutput) throws IOException {
super.writeTo(streamOutput);
streamOutput.writeString(subject);
streamOutput.writeString(message);
streamOutput.writeString(roleArn);
streamOutput.writeString(topicArn);
streamOutput.writeString(clusterName);
Expand Down

0 comments on commit 17f9b49

Please sign in to comment.