Skip to content

Commit

Permalink
[Event] Fix abstract event timestamp (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerShor authored Dec 20, 2023
1 parent 6ed7985 commit df3cbdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ type AbstractEvent struct {
id ID
emptyByteArray []byte
emptyHeaders map[string]interface{}
emptyTime time.Time
}

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

// GetTimestamp returns when the event originated
func (ae *AbstractEvent) GetTimestamp() time.Time {
return ae.emptyTime
return time.Now()
}

// GetPath returns the path of the event
Expand Down

0 comments on commit df3cbdf

Please sign in to comment.