Skip to content

Commit

Permalink
Move cache read to DB function - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Aug 13, 2024
1 parent 288e446 commit f7ebe3e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/soroban-rpc/internal/db/ledgerentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ type ledgerEntryReadTx struct {
}

func (l *ledgerEntryReadTx) GetLatestLedgerSequence() (uint32, error) {
if l.latestLedgerSeqCache != 0 {
return l.latestLedgerSeqCache, nil
}
latestLedgerSeq, err := getLatestLedgerSequence(context.Background(), l.ledgerReader, l.globalCache)
if err == nil {
l.latestLedgerSeqCache = latestLedgerSeq
Expand Down

0 comments on commit f7ebe3e

Please sign in to comment.