Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Erik Rediger <[email protected]>
  • Loading branch information
Dexterp37 and badboy committed Dec 15, 2020
1 parent 9220c62 commit 4430ac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Introduce the String List metric type in the RLB. [#1380](https://github.com/mozilla/glean/pull/1380).
* Introduce the `Datetime` metric type in the RLB [#1384](https://github.com/mozilla/glean/pull/1384).
* Introduce the `CustomDistribution` and `TimingDistribution` metric type in the RLB [#1394](https://github.com/mozilla/glean/pull/1394).
* Support ping registration before Glean initializes.
* Support ping registration before Glean initializes [#1393](https://github.com/mozilla/glean/pull/1393).

# v33.8.0 (2020-12-10)

Expand Down
2 changes: 1 addition & 1 deletion docs/user/pings/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Pings.search.Submit(
```Rust
use glean::Pings;
Pings::search.submit(Pings::searchReasonCodes::performed);
pings::search.submit(pings::SearchReasonCodes::Performed);
```

</div>
Expand Down
9 changes: 2 additions & 7 deletions glean-core/rlb/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::private::PingType;
use crate::private::{BooleanMetric, CounterMetric};
use once_cell::sync::Lazy;
use std::path::PathBuf;

use super::*;
Expand Down Expand Up @@ -512,11 +511,7 @@ fn registering_pings_before_init_must_work() {
}

// Create a custom ping and attempt its registration.
#[allow(non_upper_case_globals)]
pub static SamplePing: Lazy<PingType> =
Lazy::new(|| PingType::new("pre-register", true, true, vec![]));

register_ping_type(&SamplePing);
let sample_ping = PingType::new("pre-register", true, true, vec![]);

// Create a custom configuration to use a fake uploader.
let dir = tempfile::tempdir().unwrap();
Expand All @@ -537,7 +532,7 @@ fn registering_pings_before_init_must_work() {
crate::block_on_dispatcher();

// Submit a baseline ping.
SamplePing.submit(None);
sample_ping.submit(None);

// Wait for the ping to arrive.
let url = r.recv().unwrap();
Expand Down

0 comments on commit 4430ac0

Please sign in to comment.