From f5ec9832d4fb88da1cc68cc107ba298add118691 Mon Sep 17 00:00:00 2001 From: Aleksandar Stanchev Date: Wed, 25 Oct 2023 11:20:37 +0300 Subject: [PATCH] #1780 fix update headers of ConnectionClosed Signed-off-by: Aleksandar Stanchev --- .../connectivity/model/signals/events/ConnectionClosed.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connectivity/model/src/main/java/org/eclipse/ditto/connectivity/model/signals/events/ConnectionClosed.java b/connectivity/model/src/main/java/org/eclipse/ditto/connectivity/model/signals/events/ConnectionClosed.java index 460ba3c5a9..e761a3f130 100644 --- a/connectivity/model/src/main/java/org/eclipse/ditto/connectivity/model/signals/events/ConnectionClosed.java +++ b/connectivity/model/src/main/java/org/eclipse/ditto/connectivity/model/signals/events/ConnectionClosed.java @@ -128,7 +128,8 @@ public ConnectionClosed setRevision(final long revision) { @Override public ConnectionClosed setDittoHeaders(final DittoHeaders dittoHeaders) { - return this; + return of(getEntityId(), getRevision(), getTimestamp().orElse(null), dittoHeaders, + getMetadata().orElse(null)); } @Override