Skip to content

Commit

Permalink
Remove code making GetLedgerRange conform to interface (#186)
Browse files Browse the repository at this point in the history
It's unnecessary because we aren't using that interface anymore.
  • Loading branch information
Shaptic authored May 17, 2024
1 parent e8a73db commit cdad649
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/soroban-rpc/internal/events/events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package events

import (
"context"
"errors"
"io"
"sort"
Expand Down Expand Up @@ -268,7 +267,7 @@ func readEvents(networkPassphrase string, ledgerCloseMeta xdr.LedgerCloseMeta) (
}

// GetLedgerRange returns the first and latest ledger available in the store.
func (m *MemoryStore) GetLedgerRange(_ context.Context) (ledgerbucketwindow.LedgerRange, error) {
func (m *MemoryStore) GetLedgerRange() (ledgerbucketwindow.LedgerRange, error) {
m.lock.RLock()
defer m.lock.RUnlock()
return m.eventsByLedger.GetLedgerRange(), nil
Expand Down

0 comments on commit cdad649

Please sign in to comment.