mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor: use a single Mutex in ProcState for module graph (#12489)
This commit factors out 4 different fields from "ProcState", that are behind "Arc<Mutex<>>" into a single struct behind a single mutex.
This commit is contained in:
parent
d77a4f1d43
commit
f83c756aa0
2 changed files with 123 additions and 99 deletions
|
@ -548,7 +548,7 @@ async fn cache_command(
|
|||
Permissions::allow_all(),
|
||||
)
|
||||
.await?;
|
||||
if let Some(graph_error) = ps.maybe_graph_error.lock().take() {
|
||||
if let Some(graph_error) = ps.take_graph_error() {
|
||||
return Err(graph_error.into());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue