Skip to content

Commit

Permalink
use ahash\
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Dec 12, 2024
1 parent e7804d4 commit bb2734a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libs/telemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name = "telemetry"
version = "0.1.0"

[dependencies]
ahash = { version = "0.8.11", features = ["serde"] }
serde.workspace = true
serde_json.workspace = true
thiserror = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion libs/telemetry/src/collector.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::{
borrow::Cow,
collections::HashMap,
time::{Duration, SystemTime},
};

use ahash::{HashMap, HashMapExt};
#[cfg(test)]
use serde::Serialize;
use tokio::time::Instant;
Expand Down
3 changes: 2 additions & 1 deletion libs/telemetry/src/exporter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::{borrow::Cow, collections::HashMap, fmt::Debug, str::FromStr};
use std::{borrow::Cow, fmt::Debug, str::FromStr};

use ahash::{HashMap, HashMapExt};
use enumflags2::{bitflags, BitFlags};
use serde::Serialize;
use tokio::sync::{
Expand Down

0 comments on commit bb2734a

Please sign in to comment.