File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- use std:: collections:: BTreeSet ;
1
+ use std:: collections:: { BTreeSet , HashMap } ;
2
2
use std:: convert:: TryInto ;
3
3
use std:: panic:: { catch_unwind, AssertUnwindSafe } ;
4
4
use std:: str:: from_utf8;
@@ -433,7 +433,7 @@ impl From<cosmwasm_vm::PerModuleMetrics> for PerModuleMetrics {
433
433
434
434
#[ derive( Serialize ) ]
435
435
struct PinnedMetrics {
436
- per_module : Vec < ( Checksum , PerModuleMetrics ) > ,
436
+ per_module : HashMap < Checksum , PerModuleMetrics > ,
437
437
}
438
438
439
439
impl From < cosmwasm_vm:: PinnedMetrics > for PinnedMetrics {
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ type PerModuleMetrics struct {
197
197
}
198
198
199
199
type PinnedMetrics struct {
200
- PerModule map [string ]PerModuleMetrics `json:"per_module" msgpack:",asarray "`
200
+ PerModule map [string ]PerModuleMetrics `msgpack:"per_module "`
201
201
}
202
202
203
203
func (pm * PinnedMetrics ) UnmarshalMessagePack (data []byte ) error {
You can’t perform that action at this time.
0 commit comments