Revert "Integrate with tokio console"

This reverts commit e10da1c7dd.
This commit is contained in:
Igor Katson 2022-05-23 21:33:25 +01:00
parent 9c79e3a99e
commit bc11f43452
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 120 additions and 463 deletions

View file

@ -16,7 +16,7 @@ rust-tls = ["librqbit/rust-tls"]
[dependencies]
librqbit = {path="../librqbit", default-features=false}
dht = {path="../dht"}
tokio = {version = "1.15", features = ["macros", "rt-multi-thread", "tracing"]}
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
anyhow = "1"
clap = "3.0.0-beta.5"
log = "0.4"
@ -28,7 +28,6 @@ reqwest = "*"
serde = {version = "1", features=["derive"]}
serde_json = "1"
size_format = "1"
console-subscriber = "0.1"
[dev-dependencies]
futures = {version = "0.3"}

View file

@ -193,8 +193,6 @@ fn main() -> anyhow::Result<()> {
}
async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()> {
console_subscriber::init();
let sopts = SessionOptions {
disable_dht: opts.disable_dht,
disable_dht_persistence: opts.disable_dht_persistence,