Skip to content

Commit

Permalink
improve transport log logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Feb 5, 2024
1 parent f9d2288 commit 6e3c403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transport/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e3c403

Please sign in to comment.