Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e5652b

Browse files
committed
stream pipelining
1 parent c51fe36 commit 4e5652b

File tree

10 files changed

+639
-91
lines changed

10 files changed

+639
-91
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chain/ethereum/src/chain.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::{Context, Error};
22
use graph::blockchain::BlockchainKind;
33
use graph::data::subgraph::UnifiedMappingApiVersion;
4-
use graph::firehose::FirehoseEndpoints;
4+
use graph::firehose::{FirehoseEndpoints, ForkStep};
55
use graph::prelude::{
66
EthereumBlock, EthereumCallCache, LightEthereumBlock, LightEthereumBlockExt, StopwatchMetrics,
77
};
@@ -566,8 +566,6 @@ impl FirehoseMapperTrait<Chain> for FirehoseMapper {
566566
adapter: &TriggersAdapter,
567567
filter: &TriggerFilter,
568568
) -> Result<BlockStreamEvent<Chain>, FirehoseError> {
569-
use firehose::ForkStep;
570-
571569
let step = ForkStep::from_i32(response.step).unwrap_or_else(|| {
572570
panic!(
573571
"unknown step i32 value {}, maybe you forgot update & re-regenerate the protobuf definitions?",

core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition = "2018"
66
[dependencies]
77
async-trait = "0.1.50"
88
atomic_refcell = "0.1.8"
9+
async-stream = "0.3"
910
bytes = "0.5"
1011
futures01 = { package="futures", version="0.1.31" }
1112
futures = { version="0.3.4", features=["compat"] }

0 commit comments

Comments
 (0)