Skip to content

Commit

Permalink
Merged in fixed_panic_hook (pull request #584)
Browse files Browse the repository at this point in the history
fixed panic hook

Approved-by: zhangsoledad <[email protected]>
Approved-by: wzf <[email protected]>
  • Loading branch information
suyanlong authored and zhangsoledad committed Jan 10, 2018
2 parents 006e07f + 8fa9cac commit 87c6f10
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 34 deletions.
65 changes: 38 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cita-auth/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ use std::sync::mpsc::channel;
use std::thread;
use std::time::Duration;
use std::time::SystemTime;
use util::{Mutex, RwLock};
use util::panichandler::set_panic_handler;
use util::{set_panic_handler, Mutex, RwLock};
use verify::Verifier;

fn profifer(flag_prof_start: u64, flag_prof_duration: u64) {
Expand Down
2 changes: 1 addition & 1 deletion cita-chain/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use std::time;
use std::time::Duration;
use util::datapath::DataPath;
use util::kvdb::{Database, DatabaseConfig};
use util::panichandler::set_panic_handler;
use util::set_panic_handler;

fn main() {
micro_service_init!("cita-chain", "CITA:chain");
Expand Down
3 changes: 1 addition & 2 deletions cita-jsonrpc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ use std::sync::mpsc::{channel, Sender};
use std::thread;
use std::time::{Duration, SystemTime};
use tokio_core::reactor::Core;
use util::Mutex;
use util::panichandler::set_panic_handler;
use util::{set_panic_handler, Mutex};
use uuid::Uuid;
use ws_handler::WsFactory;

Expand Down
2 changes: 1 addition & 1 deletion cita-network/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use std::sync::mpsc::channel;
use std::thread;
use std::time::Duration;
use synchronizer::Synchronizer;
use util::panichandler::set_panic_handler;
use util::set_panic_handler;

fn main() {
micro_service_init!("cita-network", "CITA:network");
Expand Down
2 changes: 1 addition & 1 deletion cita-tendermint

0 comments on commit 87c6f10

Please sign in to comment.