-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove the `rpc_host` and `rpc_port` fields from the configuration file format and add `primary_rpc_host`, `primary_rpc_port`, `failover_rpc_host`, and `failover_rpc_port`. * Add the `RpcUrl` and `RpcUrlKind` types. * `RpcUrl` contains a host name and a port. * `RpcUrlKind` has variants for primary and failover urls and contains a `RpcUrl`. * Remove `rpc_host` and `rpc_port` and add primary and failover RPC url fields to `config::Config` et. al. * Update `app::Connections::new_http` to automatically use the failover url in the event of an error connecting to the primary. * Add the `home_url` and `foreign_url` to `Connections` containing the url/kind (a `RpcUrlKind`) currently in use. * Update logging. * Update tests.
- Loading branch information
Showing
11 changed files
with
324 additions
and
91 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
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
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
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
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
Oops, something went wrong.