From 8924cd4a179563fdcf3f244f5912d04e2820bcc6 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Mon, 13 Feb 2017 09:42:13 -0500 Subject: [PATCH] fix bug with Event.Copy() not deep copying event --- event.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/event.go b/event.go index a4186a7..347995b 100644 --- a/event.go +++ b/event.go @@ -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{}