Skip to content

Commit 090d572

Browse files
committed
clean comment
1 parent f29d8f3 commit 090d572

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,12 @@ impl AtomicF64 {
137137
#[track_caller]
138138
#[inline(always)]
139139
pub(crate) fn assert_valid_sample_rate(sample_rate: f32) {
140+
// Arbitrary cutoffs defined as:
141+
// min_sample_rate = min_required_in_spec / 2
142+
// max_sample_rate = max_required_in_spec * 2
140143
let min_sample_rate = 4_000.;
141144
let max_sample_rate = 192_000.;
142-
// 1000 Hertz is a just a random cutoff, but it helps a if someone accidentally puts a
143-
// timestamp in the sample_rate variable
145+
144146
assert!(
145147
sample_rate >= min_sample_rate && sample_rate <= max_sample_rate,
146148
"NotSupportedError - Invalid sample rate: {:?}, should be in the range [{:?}, {:?}]",

0 commit comments

Comments
 (0)