Skip to content
Snippets Groups Projects
Commit 83b148f5 authored by Pierre Krieger's avatar Pierre Krieger Committed by Arkadiy Paronyan
Browse files

Mention that in_mem::Backend doesn't work (#3250)

* Mention that in_mem::Backend doesn't work

* Bigger warning
parent f0856db1
Branches
No related merge requests found
......@@ -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:
//!
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment