Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph-node: factorize some methods inside a shared component (#3093)
* graph-node: factorize some methods inside a shared component This PR is a first step in merging #3079. In this upcoming, we had copied a bunch of methods from `main.rs`, mainly those around instantiating elements to connect to chains and prepare them. In this PR, we moved - `create_ipfs_clients` - `create_ethereum_networks` (formely `create_networks`) - `create_firehose_networks` - `connect_ethereum_networks` - `connect_firehose_networks` To a common module `chain` under `graph-node` crate. There is no functionality changed in this PR, only moving code around. Small differences are the renamed of `create_networks` and its `config` argument that is now received as a reference to `Config` (instead of a owned `Config`).
- Loading branch information