We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a20d5 commit 34c853fCopy full SHA for 34c853f
libwasmvm/src/cache.rs
@@ -433,7 +433,8 @@ impl From<cosmwasm_vm::PerModuleMetrics> for PerModuleMetrics {
433
434
#[derive(Serialize)]
435
struct PinnedMetrics {
436
- per_module: Vec<(Checksum, PerModuleMetrics)>,
+ // TODO: Remove the array usage as soon as the metrics have a stable wire format
437
+ per_module: Vec<([u8; 32], PerModuleMetrics)>,
438
}
439
440
impl From<cosmwasm_vm::PinnedMetrics> for PinnedMetrics {
@@ -442,7 +443,7 @@ impl From<cosmwasm_vm::PinnedMetrics> for PinnedMetrics {
442
443
per_module: value
444
.per_module
445
.into_iter()
- .map(|(checksum, metrics)| (checksum, metrics.into()))
446
+ .map(|(checksum, metrics)| (*checksum.as_ref(), metrics.into()))
447
.collect(),
448
449
0 commit comments