Skip to content

Commit df3cbdf

Browse files
authored
[Event] Fix abstract event timestamp (#27)
1 parent 6ed7985 commit df3cbdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

event.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ type AbstractEvent struct {
135135
id ID
136136
emptyByteArray []byte
137137
emptyHeaders map[string]interface{}
138-
emptyTime time.Time
139138
}
140139

141140
// SetTriggerInfoProvider sets the information about the trigger who triggered this event
@@ -215,7 +214,7 @@ func (ae *AbstractEvent) GetHeaders() map[string]interface{} {
215214

216215
// GetTimestamp returns when the event originated
217216
func (ae *AbstractEvent) GetTimestamp() time.Time {
218-
return ae.emptyTime
217+
return time.Now()
219218
}
220219

221220
// GetPath returns the path of the event

0 commit comments

Comments
 (0)