Skip to content

Commit

Permalink
chore/replce-anymap-with-anymap2: Update dependencies and adjust Calc…
Browse files Browse the repository at this point in the history
…ulatorMap type in Registry (#27)
  • Loading branch information
v0y4g3r authored Oct 20, 2024
1 parent 80eb97c commit a10facb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meter-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 1 addition & 2 deletions meter-core/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -21,7 +20,7 @@ use crate::collect::Collect;
use crate::data::MeterRecord;
use crate::ItemCalculator;

type CalculatorMap = anymap::Map<dyn Any + Send + Sync>;
type CalculatorMap = anymap2::SendSyncAnyMap;

#[derive(Default, Clone)]
pub struct Registry {
Expand Down

0 comments on commit a10facb

Please sign in to comment.