Skip to content

Commit

Permalink
fix: disallow log in linting
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Apr 15, 2022
1 parent e265b9b commit bcd727e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
too-many-arguments-threshold = 20
disallowed-methods = [
# we use tracing with the log feature instead of the log crate.
{ path = "log::info", reason = "use tracing::info instead" },
{ path = "log::debug", reason = "use tracing::debug instead" },
{ path = "log::error", reason = "use tracing::error instead" },
{ path = "log::warn", reason = "use tracing::warn instead" },
# unbounded channels are for expert use only
{ path = "tokio::sync::mpsc::unbounded_channel", reason = "use a bounded channel instead" },
{ path = "futures::channel::mpsc::unbounded", reason = "use a bounded channel instead" },
Expand Down

1 comment on commit bcd727e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bench results

�[0m�[0m�[1m�[32m Finished�[0m release [optimized] target(s) in 0.35s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench microbench throughput
�[2m2022-04-15T13:38:08.528048Z�[0m �[32m INFO�[0m �[2msui::benchmark::transaction_creator�[0m�[2m:�[0m Open database on path: "/tmp/DB_D193799698E7A6E1742E6C463EA2654F5E433288"
�[2m2022-04-15T13:38:09.927711Z�[0m �[32m INFO�[0m �[2msui_network::transport�[0m�[2m:�[0m Listening to TCP traffic on 127.0.0.1:9555
Throughout: 22755.603453572425 tps

Please sign in to comment.