Skip to content

Commit b66308f

Browse files
committed
lint
1 parent 84288c7 commit b66308f

File tree

2 files changed

+4
-14
lines changed
  • turbopack/crates/turbo-tasks-backend/src

2 files changed

+4
-14
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ use turbo_tasks::{
3535
TransientTaskType, TurboTasksExecutionError, TypedCellContent,
3636
},
3737
event::{Event, EventListener},
38-
message_queue::TimingEvent,
3938
registry::get_value_type,
4039
task_statistics::TaskStatisticsApi,
4140
trace::TraceRawVcs,
42-
turbo_tasks,
4341
util::{IdFactoryWithReuse, good_chunk_size},
4442
};
4543

@@ -945,7 +943,6 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
945943
}
946944

947945
fn snapshot(&self) -> Option<(Instant, bool)> {
948-
let start = Instant::now();
949946
debug_assert!(self.should_persist());
950947
let mut snapshot_request = self.snapshot_request.lock();
951948
snapshot_request.snapshot_requested = true;

turbopack/crates/turbo-tasks-backend/src/database/turbo/mod.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
use std::{
2-
cmp::max,
3-
path::PathBuf,
4-
sync::Arc,
5-
thread::available_parallelism,
6-
time::{Duration, Instant},
7-
};
1+
use std::{cmp::max, path::PathBuf, sync::Arc, thread::available_parallelism};
82

93
use anyhow::{Ok, Result};
104
use parking_lot::Mutex;
115
use turbo_persistence::{
126
ArcSlice, CompactConfig, KeyBase, StoreKey, TurboPersistence, ValueBuffer,
137
};
14-
use turbo_tasks::{JoinHandle, message_queue::TimingEvent, spawn, turbo_tasks};
8+
use turbo_tasks::{JoinHandle, spawn};
159

1610
use crate::database::{
1711
key_value_database::{KeySpace, KeyValueDatabase},
@@ -130,12 +124,11 @@ impl KeyValueDatabase for TurboKeyValueDatabase {
130124

131125
fn do_compact(
132126
db: &TurboPersistence<TurboTasksParallelScheduler>,
133-
message: &'static str,
127+
_message: &'static str,
134128
max_merge_segment_count: usize,
135129
) -> Result<()> {
136-
let start = Instant::now();
137130
// Compact the database with the given max merge segment count
138-
let ran = db.compact(&CompactConfig {
131+
db.compact(&CompactConfig {
139132
max_merge_segment_count,
140133
..COMPACT_CONFIG
141134
})?;

0 commit comments

Comments
 (0)