Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 84b16b7

Browse files
committed
More fixes
1 parent 6b99c34 commit 84b16b7

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

client/api/src/in_mem.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ impl<Block: BlockT> ProvideChtRoots<Block> for Blockchain<Block> {
488488
/// In-memory operation.
489489
pub struct BlockImportOperation<Block: BlockT> {
490490
pending_block: Option<PendingBlock<Block>>,
491-
pending_cache: HashMap<CacheKeyId, Vec<u8>>,
492491
old_state: InMemoryBackend<HashFor<Block>>,
493492
new_state: Option<<InMemoryBackend<HashFor<Block>> as StateBackend<HashFor<Block>>>::Transaction>,
494493
aux: Vec<(Vec<u8>, Option<Vec<u8>>)>,
@@ -520,9 +519,7 @@ impl<Block: BlockT> backend::BlockImportOperation<Block> for BlockImportOperatio
520519
Ok(())
521520
}
522521

523-
fn update_cache(&mut self, cache: HashMap<CacheKeyId, Vec<u8>>) {
524-
self.pending_cache = cache;
525-
}
522+
fn update_cache(&mut self, _cache: HashMap<CacheKeyId, Vec<u8>>) {}
526523

527524
fn update_db_storage(
528525
&mut self,
@@ -637,7 +634,6 @@ impl<Block: BlockT> backend::Backend<Block> for Backend<Block> where Block::Hash
637634
let old_state = self.state_at(BlockId::Hash(Default::default()))?;
638635
Ok(BlockImportOperation {
639636
pending_block: None,
640-
pending_cache: Default::default(),
641637
old_state,
642638
new_state: None,
643639
aux: Default::default(),

client/cli/src/arg_enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl Into<sc_service::config::RpcMethods> for RpcMethods {
170170
pub enum Database {
171171
/// Facebooks RocksDB
172172
RocksDb,
173-
/// ParityDb. https://github.com/paritytech/parity-db/
173+
/// ParityDb. <https://github.com/paritytech/parity-db/>
174174
ParityDb,
175175
}
176176

client/finality-grandpa-warp-sync/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
1616

17-
//! Helper for handling (i.e. answering) grandpa warp sync requests from a remote peer via the
18-
//! [`crate::request_responses::RequestResponsesBehaviour`].
17+
//! Helper for handling (i.e. answering) grandpa warp sync requests from a remote peer.
1918
2019
use codec::Decode;
2120
use sc_network::config::{IncomingRequest, OutgoingResponse, ProtocolId, RequestResponseConfig};

frame/system/src/limits.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub struct WeightsPerClass {
129129
/// `on_initialize` pallet callbacks are invoked and their cost is added before any extrinsic
130130
/// is executed. This cost is tracked as `Mandatory` dispatch class.
131131
///
132-
/// ```ignore
132+
/// ```text,ignore
133133
/// | | `max_block` | |
134134
/// | | | |
135135
/// | | | |
@@ -148,7 +148,7 @@ pub struct WeightsPerClass {
148148
/// one `Normal`). Each class has it's own limit `max_total`, but also the sum cannot exceed
149149
/// `max_block` value.
150150
///
151-
/// ```ignore
151+
/// ```text,ignore
152152
/// -- `Mandatory` limit (unlimited)
153153
/// | # | | |
154154
/// | # | `Ext3` | - - `Operational` limit
@@ -170,7 +170,7 @@ pub struct WeightsPerClass {
170170
/// out lower-priority `Operational` transactions. In such cases you might add a `reserved` capacity
171171
/// for given class.
172172
///
173-
/// ```ignore
173+
/// ```test,ignore
174174
/// _
175175
/// # \
176176
/// # `Ext8` - `reserved`

0 commit comments

Comments
 (0)