Skip to content

Commit

Permalink
- tokio runtime: instead of using threads as the number of cpus, now …
Browse files Browse the repository at this point in the history
…use the single-threaded runtime.
  • Loading branch information
kingwingfly committed Dec 23, 2024
1 parent 9ca641d commit 6ec4a34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
-->

## [Unreleased]
## [0.2.39] - 2024-12-23

- tokio runtime: instead of using threads as the number of cpus, now use the single-threaded runtime.

## [0.2.38] - 2024-12-23

- rename `fav daemon` to `fav cron`. And `fav daemon` is still available as an alias.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resolver = "2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.package]
version = "0.2.38"
version = "0.2.39"
authors = ["Louis <[email protected]>"]
description = "Back up your favorite online resources with CLI."
license = "MIT"
Expand All @@ -17,7 +17,7 @@ documentation = ""
fav_core = { path = "fav_core", version = "0.1.7" }
fav_derive = { path = "fav_derive", version = "0.0.4" }
fav_utils = { path = "fav_utils", version = "0.0.15" }
fav_cli = { path = "fav_cli", version = "0.2.38" }
fav_cli = { path = "fav_cli", version = "0.2.39" }

[profile.release]
lto = "fat"
Expand Down
2 changes: 1 addition & 1 deletion fav/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::io;
use tracing::{error, Level};
use tracing_subscriber::{filter, prelude::*};

#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() {
let filter = filter::Targets::new()
// Enable the `INFO` level for anything in `fav`
Expand Down

0 comments on commit 6ec4a34

Please sign in to comment.