Browse Source

Fix dora node template

- dora node does not import the right config.
- The template print makes it look like there is an error without modification.
tags/v0.0.0-test-pr-131
haixuanTao 3 years ago
parent
commit
7741022a53
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      binaries/cli/src/template/rust/node/main-template.rs

+ 2
- 2
binaries/cli/src/template/rust/node/main-template.rs View File

@@ -1,4 +1,4 @@
use dora_node_api::{self, config::DataId, DoraNode};
use dora_node_api::{self, core::config::DataId, DoraNode};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
@@ -7,7 +7,7 @@ fn main() -> Result<(), Box<dyn Error>> {

while let Ok(input) = inputs.recv() {
match input.id.as_str() {
other => eprintln!("Ignoring unexpected input `{other}`"),
other => eprintln!("Received input `{other}`"),
}
}



Loading…
Cancel
Save