Skip to content

Commit

Permalink
use storage ledger info as latest ledger info
Browse files Browse the repository at this point in the history
  • Loading branch information
areshand committed Sep 30, 2024
1 parent a34e5d6 commit 271e132
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ impl Context {
}

pub fn get_latest_ledger_info<E: ServiceUnavailableError>(&self) -> Result<LedgerInfo, E> {
if let Some(indexer_reader) = self.indexer_reader.as_ref() {
if indexer_reader.is_internal_indexer_enabled() {
return self.get_latest_internal_indexer_ledger_info();
}
}
self.get_latest_storage_ledger_info()
}

Expand Down

0 comments on commit 271e132

Please sign in to comment.