Skip to content

Commit

Permalink
[config] remove json_rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw authored and aptos-bot committed May 8, 2022
1 parent 6dafa63 commit e98490d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 56 deletions.
8 changes: 1 addition & 7 deletions api/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use crate::{context::Context, index};

use aptos_config::config::{ApiConfig, JsonRpcConfig, NodeConfig};
use aptos_config::config::{ApiConfig, NodeConfig};
use aptos_mempool::MempoolClientSender;
use aptos_types::chain_id::ChainId;
use storage_interface::DbReader;
Expand Down Expand Up @@ -53,12 +53,6 @@ impl From<ApiConfig> for WebServer {
}
}

impl From<JsonRpcConfig> for WebServer {
fn from(cfg: JsonRpcConfig) -> Self {
Self::new(cfg.address, cfg.tls_cert_path, cfg.tls_key_path)
}
}

impl WebServer {
pub fn new(
address: SocketAddr,
Expand Down
44 changes: 0 additions & 44 deletions config/src/config/json_rpc_config.rs

This file was deleted.

5 changes: 0 additions & 5 deletions config/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ mod mempool_config;
pub use mempool_config::*;
mod network_config;
pub use network_config::*;
mod json_rpc_config;
pub use json_rpc_config::*;
mod secure_backend_config;
pub use secure_backend_config::*;
mod state_sync_config;
Expand Down Expand Up @@ -75,8 +73,6 @@ pub struct NodeConfig {
#[serde(default)]
pub metrics: DeprecatedConfig,
#[serde(default)]
pub json_rpc: JsonRpcConfig,
#[serde(default)]
pub api: ApiConfig,
#[serde(default)]
pub state_sync: StateSyncConfig,
Expand Down Expand Up @@ -292,7 +288,6 @@ impl NodeConfig {

pub fn randomize_ports(&mut self) {
self.debug_interface.randomize_ports();
self.json_rpc.randomize_ports();
self.api.randomize_ports();
self.storage.randomize_ports();

Expand Down

0 comments on commit e98490d

Please sign in to comment.