Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed May 7, 2024
1 parent fe34901 commit c19392a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/turborepo-lib/src/package_changes_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,16 @@ impl Subscriber {

loop {
interval.tick().await;
let changed_files = {
let changed_files = self.changed_files.lock().await;
if changed_files.borrow().is_empty() {
continue;
}

let changed_files = self.changed_files.lock().await;
if changed_files.borrow().is_empty() {
continue;
}
changed_files.take()
};

let ChangedFiles::Some(trie) = changed_files.take() else {
let ChangedFiles::Some(trie) = changed_files else {
let _ = self
.package_change_events_tx
.send(PackageChangeEvent::Rediscover);
Expand Down

0 comments on commit c19392a

Please sign in to comment.