Skip to content

Commit

Permalink
Fix type of put event
Browse files Browse the repository at this point in the history
  • Loading branch information
jkodumal committed Jul 20, 2016
1 parent 03800ba commit 9a55ee9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions relay-feature-store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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)
}

0 comments on commit 9a55ee9

Please sign in to comment.