cleanup <weight></weight> from docs comments (#13350)

* cleanup <weight></weight> from docs comments

* Changes to address review commnets

* Fix CI cargo test --docs

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Vivek Pandya
2023-02-14 19:39:36 +05:30
committed by GitHub
parent 56b90e199d
commit 35e8e137c5
22 changed files with 202 additions and 635 deletions
+6 -15
View File
@@ -587,14 +587,9 @@ pub mod pallet {
///
/// The dispatch origin of this function must be signed.
///
/// # <weight>
/// - Complexity: `O(1)`. Actual cost depends on the number of length of
/// `T::Keys::key_ids()` which is fixed.
/// - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
/// - DbWrites: `origin account`, `NextKeys`
/// - DbReads per key id: `KeyOwner`
/// - DbWrites per key id: `KeyOwner`
/// # </weight>
/// ## Complexity
/// - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
/// fixed.
#[pallet::call_index(0)]
#[pallet::weight(T::WeightInfo::set_keys())]
pub fn set_keys(origin: OriginFor<T>, keys: T::Keys, proof: Vec<u8>) -> DispatchResult {
@@ -614,13 +609,9 @@ pub mod pallet {
/// means being a controller account) or directly convertible into a validator ID (which
/// usually means being a stash account).
///
/// # <weight>
/// - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
/// of `T::Keys::key_ids()` which is fixed.
/// - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
/// - DbWrites: `NextKeys`, `origin account`
/// - DbWrites per key id: `KeyOwner`
/// # </weight>
/// ## Complexity
/// - `O(1)` in number of key types. Actual cost depends on the number of length of
/// `T::Keys::key_ids()` which is fixed.
#[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::purge_keys())]
pub fn purge_keys(origin: OriginFor<T>) -> DispatchResult {