From 44cd09f4392ce39612f2d78a6371439654f2abde Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:56:35 +0000 Subject: [PATCH] add TODO comment on strange condition --- charger/ocpp/connector_core.go | 1 + 1 file changed, 1 insertion(+) diff --git a/charger/ocpp/connector_core.go b/charger/ocpp/connector_core.go index b0316d1cf..18f9378a4 100644 --- a/charger/ocpp/connector_core.go +++ b/charger/ocpp/connector_core.go @@ -92,6 +92,7 @@ func (conn *Connector) StartTransaction(request *core.StartTransactionRequest) ( defer conn.mu.Unlock() // expired request + // TODO: check if this is the correct way to handle expired requests. AuthorirzationStatusExpired is related to the idTag, not the request itself if request.Timestamp != nil && conn.clock.Since(request.Timestamp.Time) > Timeout { res := &core.StartTransactionConfirmation{ IdTagInfo: &types.IdTagInfo{