From 17876324ccaf4567f7484f618cb1c278fe292741 Mon Sep 17 00:00:00 2001 From: Sergey Shulepov Date: Thu, 25 Nov 2021 13:03:12 +0000 Subject: [PATCH] `schedule_para_{init,cleanup}` docs Now they link to their original declarations in the pallet for more details. --- runtime/parachains/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/parachains/src/lib.rs b/runtime/parachains/src/lib.rs index f1d8473f8894..4398238c319b 100644 --- a/runtime/parachains/src/lib.rs +++ b/runtime/parachains/src/lib.rs @@ -52,6 +52,8 @@ pub use paras::ParaLifecycle; use primitives::v1::Id as ParaId; /// Schedule a para to be initialized at the start of the next session with the given genesis data. +/// +/// See [`paras::Pallet::schedule_para_initialize`] for more details. pub fn schedule_para_initialize( id: ParaId, genesis: paras::ParaGenesisArgs, @@ -60,6 +62,8 @@ pub fn schedule_para_initialize( } /// Schedule a para to be cleaned up at the start of the next session. +/// +/// See [`paras::Pallet::schedule_para_cleanup`] for more details. pub fn schedule_para_cleanup(id: primitives::v1::Id) -> Result<(), ()> { >::schedule_para_cleanup(id).map_err(|_| ()) }