Use bytes for flows event id (#3439)

This commit is contained in:
Viktor Liu
2025-03-07 16:12:47 +01:00
committed by GitHub
parent cb16d0f45f
commit 86370a0e7b
6 changed files with 23 additions and 20 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ func (l *Logger) startReceiver() {
log.Info("flow Memory store receiver stopped")
return
case eventFields := <-c:
id := uuid.NewString()
id := uuid.New()
event := types.Event{
ID: id,
EventFields: *eventFields,
@@ -109,7 +109,7 @@ func (l *Logger) GetEvents() []*types.Event {
return l.Store.GetEvents()
}
func (l *Logger) DeleteEvents(ids []string) {
func (l *Logger) DeleteEvents(ids []uuid.UUID) {
l.Store.DeleteEvents(ids)
}