Skip to content

Commit

Permalink
graph-node: factorize some methods inside a shared component (#3093)
Browse files Browse the repository at this point in the history
* 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
Matthieu Vachon authored and kamilkisiela committed Jan 5, 2022
1 parent eb953ce commit 99495a4
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 490 deletions.
Loading

0 comments on commit 99495a4

Please sign in to comment.