Skip to content

Commit

Permalink
support for data-collector
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed May 29, 2023
1 parent a4d649f commit 9407567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pallets/data-collector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ std = [
"cfg-traits/std",
"orml-traits/std",
]
runtime-benchmarks = [
"cfg-traits/runtime-benchmarks",
]
2 changes: 1 addition & 1 deletion pallets/data-collector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub mod pallet {
type Collection = CachedCollection<T, I>;
type Data = Result<DataValueOf<T, I>, DispatchError>;
#[cfg(feature = "runtime-benchmarks")]
type MaxCollectionSize = MaxCollectionSize;
type MaxCollectionSize = T::MaxCollectionSize;

fn get(data_id: &T::DataId) -> Self::Data {
T::DataProvider::get_no_op(data_id)
Expand Down

0 comments on commit 9407567

Please sign in to comment.