Skip to content

Commit

Permalink
We aren't conforming to an interface anymore, anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed May 17, 2024
1 parent 6b63080 commit f4206b8
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 f4206b8

Please sign in to comment.