From f8b9003c36d8d674328740e27286f63da715e77c Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 18 Aug 2019 13:46:37 +0200 Subject: [PATCH] Specify names of new item event fields --- cmd/eksterd/memory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/eksterd/memory.go b/cmd/eksterd/memory.go index 06ae5d6..8457328 100644 --- a/cmd/eksterd/memory.go +++ b/cmd/eksterd/memory.go @@ -642,8 +642,8 @@ func (b *memoryBackend) channelAddItem(channel string, item microsub.Item) error added, err := timelineBackend.AddItem(item) type newItemMessage struct { - Item microsub.Item - Channel string + Item microsub.Item `json:"item"` + Channel string `json:"channel"` } // Sent message to Server-Sent-Events