Skip to content

Commit

Permalink
chore: del invalid file
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-chen2050 committed Jul 11, 2024
1 parent 18718e6 commit 0c8c2fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 182 deletions.
70 changes: 0 additions & 70 deletions db_sql/src/api.rs

This file was deleted.

106 changes: 0 additions & 106 deletions tools/src/tokio_zhronod.rs

This file was deleted.

2 changes: 0 additions & 2 deletions zebclock/src/api/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ use std::net::SocketAddr;
use tracing::*;

pub fn make_query_response(success: bool, reason: String, data: &[u8], request_id: String) -> QueryResponse {


QueryResponse {
request_id,
success,
Expand Down
10 changes: 6 additions & 4 deletions zebclock/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use structopt::StructOpt;
use node_api::error::ZchronodConfigError;
use tracing::*;
use node_api::config::ZchronodConfig;
use tracing_subscriber::FmtSubscriber;
use tracing_subscriber::EnvFilter;
use crate::zchronod::ZchronodArc;
use crate::zchronod::Zchronod;

Expand All @@ -31,9 +31,11 @@ fn main() {
}

async fn async_main() {
let fmt_subscriber = FmtSubscriber::new();
tracing::subscriber::set_global_default(fmt_subscriber)
.expect("set default tracing subscriber fail");
// set default log level: INFO
let rust_log = std::env::var("RUST_LOG").unwrap_or_else(|_| "info".to_string());
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::new(rust_log))
.init();

info!("start zchronod server");
let mut help_info = true;
Expand Down

0 comments on commit 0c8c2fc

Please sign in to comment.