From 9a55ee97880e944e19e7e3603470b5aaa203814c Mon Sep 17 00:00:00 2001 From: John Kodumal Date: Wed, 20 Jul 2016 15:54:02 -0700 Subject: [PATCH] Fix type of put event --- relay-feature-store.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/relay-feature-store.go b/relay-feature-store.go index e897bc33..0b71e834 100644 --- a/relay-feature-store.go +++ b/relay-feature-store.go @@ -112,9 +112,7 @@ func (relay *SSERelayFeatureStore) Replay(channel, id string) (out chan es.Event return } -type putEvent struct { - D map[string]*ld.Feature `json:"data"` -} +type putEvent map[string]*ld.Feature type deleteEvent struct { Path string `json:"path"` @@ -213,7 +211,5 @@ func makeDeleteEvent(key string, version int) es.Event { } func makePutEvent(flags map[string]*ld.Feature) es.Event { - return putEvent{ - D: flags, - } + return putEvent(flags) }