mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
Mention that in_mem::Backend doesn't work (#3250)
* Mention that in_mem::Backend doesn't work * Bigger warning
This commit is contained in:
committed by
Arkadiy Paronyan
parent
f0856db12c
commit
83b148f514
@@ -532,7 +532,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
/// In-memory backend. Keeps all states and blocks in memory. Useful for testing.
|
||||
/// In-memory backend. Keeps all states and blocks in memory.
|
||||
///
|
||||
/// > **Warning**: Doesn't support all the features necessary for a proper database. Only use this
|
||||
/// > struct for testing purposes. Do **NOT** use in production.
|
||||
pub struct Backend<Block, H>
|
||||
where
|
||||
Block: BlockT,
|
||||
|
||||
@@ -28,8 +28,7 @@
|
||||
//! Creating a [`Client`] is done by calling the `new` method and passing to it a
|
||||
//! [`Backend`](backend::Backend) and an [`Executor`](CallExecutor).
|
||||
//!
|
||||
//! The former is typically provided by the `substrate-client-db` crate, but [`in_mem::Backend`]
|
||||
//! can be used for testing purposes.
|
||||
//! The former is typically provided by the `substrate-client-db` crate.
|
||||
//!
|
||||
//! The latter typically requires passing one of:
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user