summaryrefslogtreecommitdiff
path: root/cli/compilers/wasm.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-11 17:23:40 +0100
committerGitHub <noreply@github.com>2020-02-11 17:23:40 +0100
commite0bcecee6042b219c6626172851af5a25362b948 (patch)
tree6d56a581d715738c9e38fc4e4077c96c083f67ba /cli/compilers/wasm.rs
parent5a143cdbd34df590a24ec756a6319a89d7656e5c (diff)
refactor: Remove atomics from metrics (#3968)
* replace "AtomicUsize" with "u64" for field type on "Metrics" * move "compiler_starts" field from "Metrics" to "GlobalState"
Diffstat (limited to 'cli/compilers/wasm.rs')
-rw-r--r--cli/compilers/wasm.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs
index 9bc9d2ab4..d6f0d2f4a 100644
--- a/cli/compilers/wasm.rs
+++ b/cli/compilers/wasm.rs
@@ -61,10 +61,7 @@ impl WasmCompiler {
.expect("Unable to create worker state");
// Count how many times we start the compiler worker.
- global_state
- .metrics
- .compiler_starts
- .fetch_add(1, Ordering::SeqCst);
+ global_state.compiler_starts.fetch_add(1, Ordering::SeqCst);
let mut worker = CompilerWorker::new(
"WASM".to_string(),