-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fresh context for each indexer (#97)
Say we have some query that has no block requirement, so making the query deterministic will set a block hash based on the latest block for that indexer. If we need to try another indexer, then the context will be carried over and the next indexer may be queried with a block that is greater than its indexing status. This will result in unnecessary retries and penalties for many indexers that happen to be selected after the first for any query. See also: graphprotocol/agora#31
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ actix-http = "=3.0.0-beta.14" | |
actix-web = "=4.0.0-beta.13" | ||
async-trait = "0.1" | ||
bs58 = "0.4" | ||
cost-model = {git = "ssh://[email protected]/graphprotocol/agora.git", rev = "48bf329"} | ||
cost-model = {git = "ssh://[email protected]/graphprotocol/agora.git", rev = "c7c9876"} | ||
eventuals = "0.6" | ||
futures = "0.3" | ||
futures-util = "0.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters