From 8f2fb3daf1a801bd17372b7a3f385ab4b48fd3d4 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Wed, 4 Sep 2024 16:37:23 +0200 Subject: [PATCH] Recovery timestamp --- pfcp/entity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pfcp/entity.go b/pfcp/entity.go index fb473c6..2e72adf 100644 --- a/pfcp/entity.go +++ b/pfcp/entity.go @@ -10,6 +10,7 @@ import ( "fmt" "net" "sync" + "time" "github.com/nextmn/go-pfcp-networking/pfcp/api" "github.com/nextmn/go-pfcp-networking/pfcputil" @@ -111,7 +112,7 @@ func NewPFCPEntity(nodeID string, listenAddr string, kind string, options api.En return PFCPEntity{ nodeID: ie.NewNodeIDHeuristic(nodeID), listenAddr: listenAddr, - recoveryTimeStamp: nil, + recoveryTimeStamp: ie.NewRecoveryTimeStamp(time.Now()), handlers: newDefaultPFCPEntityHandlers(), associationsMap: NewAssociationsMap(), sessionsMap: NewSessionsMap(),