diff --git a/meter-core/Cargo.toml b/meter-core/Cargo.toml index 3144017..f0e1ba6 100644 --- a/meter-core/Cargo.toml +++ b/meter-core/Cargo.toml @@ -4,6 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -anymap = "1.0.0-beta.2" +anymap2 = "0.13" once_cell = "1" parking_lot = "0.12" diff --git a/meter-core/src/registry.rs b/meter-core/src/registry.rs index ba9e67b..657cc05 100644 --- a/meter-core/src/registry.rs +++ b/meter-core/src/registry.rs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::any::Any; use std::sync::Arc; use parking_lot::RwLock; @@ -21,7 +20,7 @@ use crate::collect::Collect; use crate::data::MeterRecord; use crate::ItemCalculator; -type CalculatorMap = anymap::Map; +type CalculatorMap = anymap2::SendSyncAnyMap; #[derive(Default, Clone)] pub struct Registry {