Rename 'url' to 'json_rpc_url'

This commit is contained in:
Michael Vines
2020-03-09 12:14:17 -07:00
parent f671be814e
commit 5c236fd06c
2 changed files with 10 additions and 10 deletions

View File

@ -17,15 +17,15 @@ lazy_static! {
#[derive(Serialize, Deserialize, Default, Debug, PartialEq)]
pub struct Config {
pub url: String,
pub json_rpc_url: String,
pub websocket_url: String,
pub keypair_path: String,
}
impl Config {
pub fn new(url: &str, websocket_url: &str, keypair_path: &str) -> Self {
pub fn new(json_rpc_url: &str, websocket_url: &str, keypair_path: &str) -> Self {
Self {
url: url.to_string(),
json_rpc_url: json_rpc_url.to_string(),
websocket_url: websocket_url.to_string(),
keypair_path: keypair_path.to_string(),
}