Handle flow updates (#3455)

This commit is contained in:
Viktor Liu
2025-03-07 13:56:00 +01:00
committed by GitHub
parent 3c3a454e61
commit 54be772ffd
4 changed files with 154 additions and 94 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ package store
import (
"sync"
"golang.org/x/exp/maps"
"github.com/netbirdio/netbird/client/internal/netflow/types"
)
@@ -26,7 +28,7 @@ func (m *Memory) StoreEvent(event *types.Event) {
func (m *Memory) Close() {
m.mux.Lock()
defer m.mux.Unlock()
m.events = make(map[string]*types.Event)
maps.Clear(m.events)
}
func (m *Memory) GetEvents() []*types.Event {