From d02c1915aace2ab9e2dadd86941f12d47b03def1 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 23 Sep 2024 09:08:51 +0200 Subject: [PATCH] chore: fix init --- charger/ocpp/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/ocpp/instance.go b/charger/ocpp/instance.go index 64086802a..33ba56f26 100644 --- a/charger/ocpp/instance.go +++ b/charger/ocpp/instance.go @@ -43,8 +43,8 @@ func Instance() *CS { cps: make(map[string]*CP), init: make(map[string]*sync.Mutex), CentralSystem: cs, - txnId: int(time.Now().UTC().Unix()), } + instance.txnId.Store(time.Now().UTC().Unix()) ocppj.SetLogger(instance)