prometheus-client-mmap 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/fast_mmaped_file_rs/src/mmap.rs +6 -0
- data/lib/prometheus/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ab67f9568af0824f8d1e9a37f6038280d4b171a513393c7effe6bc4ca52eb2
|
4
|
+
data.tar.gz: f51fecb003da809c8f5240fe84e0ac66893a1d8c20699431534d90c1df446a67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a27a8dc91b3d9854c749bb4d799441eb6b597be5cdfb1fdfc5723f1ba7af11ca1607c47acfb83a773809aeac84fdc982c331b6e742cf0eb77933e546ef5b03
|
7
|
+
data.tar.gz: e34315f553e08b7a19c1e4d0e67d83ec18508c28ac4f4b4a7b182b9ace40e2301bbe59da1b93f0b042bb560a3f766d3e0e078cd41cb55d12342262d6f92a8418
|
@@ -399,6 +399,12 @@ impl MmapedFile {
|
|
399
399
|
// Iterate over the values of the `WeakMap`.
|
400
400
|
for val in tracker.enumeratorize("each_value", ()) {
|
401
401
|
let rb_string = val?;
|
402
|
+
|
403
|
+
// A nil value suggests that the value was garbage collected
|
404
|
+
if rb_string.is_nil() {
|
405
|
+
continue;
|
406
|
+
}
|
407
|
+
|
402
408
|
let str = RString::from_value(rb_string)
|
403
409
|
.ok_or_else(|| err!(arg_error(), "weakmap value was not a string"))?;
|
404
410
|
|