mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 00:28:01 +00:00
Alter usage collection a bit (#4863)
* alter usage collection a bit * replace with mutex
This commit is contained in:
@@ -102,7 +102,7 @@ impl<Block: BlockT> LightStorage<Block> {
|
||||
cache: Arc::new(DbCacheSync(RwLock::new(cache))),
|
||||
header_metadata_cache: HeaderMetadataCache::default(),
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
io_stats: FrozenForDuration::new(std::time::Duration::from_secs(1), kvdb::IoStats::empty()),
|
||||
io_stats: FrozenForDuration::new(std::time::Duration::from_secs(1)),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user