Просмотр исходного кода

bin/tau: little fix in tau-cli

ghassmo 4 лет назад
Родитель
Сommit
51152f934b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      bin/tau/tau-cli/src/main.rs
  2. 1 1
      bin/tau/tau-cli/src/util.rs

+ 1 - 1
bin/tau/tau-cli/src/main.rs

@@ -24,7 +24,7 @@ use crate::{
 };
 
 async fn start(options: CliTau, config: TauConfig) -> Result<()> {
-    let rpc_addr = &format!("tcp://{}", &config.rpc_listener_url.url.clone());
+    let rpc_addr = &format!("tcp://{}", &config.rpc_listen.url.clone());
 
     match options.command {
         Some(CliTauSubCommands::Add { title, desc, assign, project, due, rank }) => {

+ 1 - 1
bin/tau/tau-cli/src/util.rs

@@ -19,7 +19,7 @@ pub const CONFIG_FILE_CONTENTS: &[u8] = include_bytes!("../../taud_config.toml")
 #[derive(Clone, Debug, Serialize, Deserialize)]
 pub struct TauConfig {
     /// The address where taud should bind its RPC socket
-    pub rpc_listener_url: UrlConfig,
+    pub rpc_listen: UrlConfig,
 }
 
 #[derive(Subcommand)]