Skip to content

Commit

Permalink
[indexer] Fix the event api check (#10847)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
threewebcode authored Apr 14, 2023
1 parent fdecbac commit d1773e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-indexer/src/apis/indexer_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ where
limit: Option<usize>,
descending_order: Option<bool>,
) -> RpcResult<EventPage> {
if self.migrated_methods.contains(&"query_events".to_string()) {
if !self.migrated_methods.contains(&"query_events".to_string()) {
let query_events_guard = self
.state
.indexer_metrics()
Expand Down

0 comments on commit d1773e6

Please sign in to comment.