Skip to content

Commit

Permalink
remove do_log method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jun 20, 2022
1 parent 259734d commit dd0b4a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions example/src/bench_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ use fast_log::config::Config;
fn main() {
struct BenchRecvLog {}
impl LogAppender for BenchRecvLog {
fn do_logs(&self, records: &[FastLogRecord]) {
fn do_logs(&self, _records: &[FastLogRecord]) {
//nothing
}
}
// fast_log::init(Config::new().custom(BenchRecvLog{})).unwrap();
fast_log::init(Config::new().console()).unwrap();
fast_log::init(Config::new().custom(BenchRecvLog{})).unwrap();
let total = 1000000;
let now = Instant::now();
for index in 0..total {
Expand Down

0 comments on commit dd0b4a5

Please sign in to comment.