Skip to content

Commit 707c9a8

Browse files
1 parent ddf7d51 commit 707c9a8

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Source/Library.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ pub mod mist;
5555
pub mod track;
5656

5757
pub mod rpc;
58+
59+
pub mod runtime;

Source/runtime.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
use std::sync::Arc;
2626

27-
use Land_Common::runtime::{DefaultRuntime, Runtime}; // Assuming DefaultRuntime in Common
27+
// Assuming DefaultRuntime in Common
28+
use Land_Common::runtime::{DefaultRuntime, Runtime};
2829

2930
use crate::environment::MountainEnvironment;
3031

@@ -45,11 +46,12 @@ impl AppRuntime {
4546
// Expose the run method
4647
pub async fn run<E, Err, Out>(&self, effect:ActionEffect<E, Err, Out>) -> Result<Out, Err>
4748
where
48-
E: Environment + Send + Sync + 'static, // Ensure Env constraints match Effect
49+
// Ensure Env constraints match Effect
50+
E: Environment + Send + Sync + 'static,
4951
Err: Send + Sync + 'static,
5052
Out: Send + Sync + 'static,
51-
MountainEnvironment: Requires<E>, // MountainEnv must provide what Effect needs
52-
{
53+
// MountainEnv must provide what Effect needs
54+
MountainEnvironment: Requires<E>, {
5355
// Delegate to the common runtime's run method
5456
self.inner.run(effect).await
5557
}

0 commit comments

Comments
 (0)