Skip to content

Commit ab32105

Browse files
committed
Get rid of portable atomic for now
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 8b5483e commit ab32105

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ parquet = "57.1"
174174
paste = "1.0.15"
175175
pco = "0.4.4"
176176
pin-project-lite = "0.2.15"
177-
portable-atomic = "1.10"
178177
primitive-types = { version = "0.14.0" }
179178
proc-macro2 = "1.0.95"
180179
prost = "0.14"

vortex-metrics/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ parking_lot = { workspace = true }
1919
sketches-ddsketch = { workspace = true }
2020
vortex-session = { workspace = true }
2121

22-
[target.'cfg(target_pointer_width = "32")'.dependencies]
23-
portable-atomic = { workspace = true }
24-
2522
[lints]
2623
workspace = true
2724

vortex-metrics/src/counter.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

44
use std::sync::Arc;
5-
#[cfg(not(target_pointer_width = "32"))]
6-
pub use std::sync::atomic::AtomicU64;
5+
use std::sync::atomic::AtomicU64;
76
use std::sync::atomic::Ordering;
87

9-
#[cfg(target_pointer_width = "32")]
10-
pub use portable_atomic::AtomicU64;
11-
128
/// A commutative value that can only be increased, and starts at 0 on initialization.
139
#[derive(Clone, Debug)]
1410
pub struct Counter(Arc<AtomicU64>);

vortex-metrics/src/gauge.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

44
use std::sync::Arc;
5-
#[cfg(not(target_pointer_width = "32"))]
6-
pub use std::sync::atomic::AtomicU64;
5+
use std::sync::atomic::AtomicU64;
76
use std::sync::atomic::Ordering;
87

9-
#[cfg(target_pointer_width = "32")]
10-
pub use portable_atomic::AtomicU64;
11-
128
/// A gauge metric that can increase or decrease, representing a single value at the point of sampling.
139
#[derive(Clone)]
1410
pub struct Gauge(Arc<AtomicU64>);

0 commit comments

Comments
 (0)