From 6e3c403c327fbb0436b435bedf60974a7e3ce039 Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Mon, 5 Feb 2024 20:55:33 +0000 Subject: [PATCH] improve transport log logic --- pkg/transport/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/transport/log.go b/pkg/transport/log.go index 9dad3150a..c16eea21a 100644 --- a/pkg/transport/log.go +++ b/pkg/transport/log.go @@ -155,7 +155,7 @@ func (tls *inMemoryTransportLogStore) Entry(id uuid.UUID) (*LogEntry, error) { entry, ok := tls.entries[id] tls.mu.Unlock() if !ok { - return entry, errors.New("transport log entry not found") + return nil, errors.New("transport log entry not found") } return entry, nil