Clear cache fix
//! This module implements node maintenance actions.
-use std::{collections::HashMap, path::Path};
+use std::{
+ collections::HashMap,
+ path::{Path, PathBuf},
+};
use super::{
internal::{CollectedCommand, Command, Feedback},
@@ -39,7 +42,7 @@ const MAINTENANCE_ACTION_PATH: &str = "MAINTENANCE_ACTION_PATH";
pub struct Maintenance;
impl Maintenance {
- fn node_config(ctx: &Context) -> NodeConfig {
+ fn node_config(ctx: &Context) -> NodeConfig<PathBuf> {
let path = ctx
.arg::<String>(NODE_CONFIG_PATH)
.unwrap_or_else(|_| panic!("{} not found.", NODE_CONFIG_PATH));
