mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 09:17:58 +00:00
fix comment of exit_runtime (#2616)
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -298,7 +298,7 @@ impl<K: Ord + Hash + Clone, V> OverlayedMap<K, V> {
|
||||
|
||||
/// Call this when control returns from the runtime.
|
||||
///
|
||||
/// This commits all dangling transaction left open by the runtime.
|
||||
/// This rollbacks all dangling transaction left open by the runtime.
|
||||
/// Calling this while already outside the runtime will return an error.
|
||||
pub fn exit_runtime(&mut self) -> Result<(), NotInRuntime> {
|
||||
if let ExecutionMode::Client = self.execution_mode {
|
||||
|
||||
@@ -498,7 +498,7 @@ impl<H: Hasher> OverlayedChanges<H> {
|
||||
|
||||
/// Call this when control returns from the runtime.
|
||||
///
|
||||
/// This commits all dangling transaction left open by the runtime.
|
||||
/// This rollbacks all dangling transaction left open by the runtime.
|
||||
/// Calling this while outside the runtime will return an error.
|
||||
pub fn exit_runtime(&mut self) -> Result<(), NotInRuntime> {
|
||||
self.top.exit_runtime()?;
|
||||
|
||||
Reference in New Issue
Block a user