Skip to content

Commit

Permalink
fix OwnedTasks::new() call
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Sep 12, 2023
1 parent 5ffbf01 commit f8a5f10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion tokio/src/runtime/scheduler/multi_thread_alt/worker.rs
Expand Up @@ -307,7 +307,7 @@ pub(super) fn create(
remotes: remotes.into_boxed_slice(),
inject,
idle,
owned: OwnedTasks::new(),
owned: OwnedTasks::new(16),
synced: Mutex::new(Synced {
assigned_cores: (0..num_workers).map(|_| None).collect(),
shutdown_cores: Vec::with_capacity(num_cores),
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/runtime/tests/task.rs
Expand Up @@ -241,7 +241,7 @@ fn with(f: impl FnOnce(Runtime)) {
let _reset = Reset;

let rt = Runtime(Arc::new(Inner {
owned: OwnedTasks::new(),
owned: OwnedTasks::new(16),
core: Mutex::new(Core {
queue: VecDeque::new(),
}),
Expand Down

0 comments on commit f8a5f10

Please sign in to comment.