From f83c756aa0754d8507d6df1b4afc6fd516396c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 19 Oct 2021 16:01:46 +0200 Subject: refactor: use a single Mutex in ProcState for module graph (#12489) This commit factors out 4 different fields from "ProcState", that are behind "Arc>" into a single struct behind a single mutex. --- cli/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 9dd7a354e..d36145bea 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -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()); } } -- cgit v1.2.3