fix bug with Event.Copy() not deep copying event

This commit is contained in:
Liam Stanley 2017-02-13 09:42:13 -05:00
parent 82bafff852
commit 8924cd4a17

View File

@ -134,6 +134,11 @@ func (e *Event) Copy() *Event {
*newEvent.Source = *e.Source
}
// Copy Params in order to dereference as well.
if e.Params != nil {
copy(newEvent.Params, e.Params)
}
// Copy tags as necessary.
if e.Tags != nil {
newEvent.Tags = Tags{}