Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename path #612

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/api/src/jsonrpc/impl/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ use crate::jsonrpc::{web3_types::Web3SyncStatus, AxonNodeRpcServer, RpcResult};
pub struct NodeRpcImpl {
version: String,
pprof: Arc<AtomicBool>,
path: PathBuf,
_path: PathBuf,
}

impl NodeRpcImpl {
pub fn new(version: &str, path: PathBuf) -> Self {
NodeRpcImpl {
version: version.to_string(),
pprof: Arc::new(AtomicBool::default()),
path: path.join("api"),
_path: path.join("api"),
}
}
}
Expand Down Expand Up @@ -79,7 +79,7 @@ impl AxonNodeRpcServer for NodeRpcImpl {
self.pprof.store(_enable, Ordering::Release);
if !old && _enable {
let flag = Arc::clone(&self.pprof);
let path = self.path.clone();
let path = self._path.clone();

std::thread::spawn(move || {
use pprof::protos::Message;
Expand Down