Skip to content

Commit abd8f5e

Browse files
authored
fix: Heartbeat handling was missing when observing events. (#125)
1 parent 10c1138 commit abd8f5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eventsourcingdb/observe_events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ func (c *Client) ObserveEvents(
111111
}
112112

113113
switch line.Type {
114+
case "heartbeat":
115+
continue
114116
case "event":
115117
var event Event
116118
err := json.Unmarshal(line.Payload, &event)

0 commit comments

Comments
 (0)