File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ impl Factor for WasiFactor {
70
70
Ok ( ( ) )
71
71
}
72
72
73
+ fn configure_app < T : RuntimeFactors > (
74
+ & self ,
75
+ _ctx : spin_factors:: ConfigureAppContext < T , Self > ,
76
+ ) -> anyhow:: Result < Self :: AppState > {
77
+ Ok ( ( ) )
78
+ }
79
+
73
80
fn prepare < T : RuntimeFactors > (
74
81
ctx : PrepareContext < Self > ,
75
82
_builders : & mut InstanceBuilders < T > ,
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ impl Factor for WasiPreview1Factor {
15
15
ctx. link_module_bindings ( wasmtime_wasi:: preview1:: add_to_linker_async)
16
16
}
17
17
18
+ fn configure_app < T : RuntimeFactors > (
19
+ & self ,
20
+ _ctx : spin_factors:: ConfigureAppContext < T , Self > ,
21
+ ) -> anyhow:: Result < Self :: AppState > {
22
+ Ok ( ( ) )
23
+ }
24
+
18
25
fn prepare < T : RuntimeFactors > (
19
26
_ctx : spin_factors:: PrepareContext < Self > ,
20
27
_builders : & mut spin_factors:: InstanceBuilders < T > ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use crate::{
10
10
pub trait Factor : Any + Sized {
11
11
type RuntimeConfig : FactorRuntimeConfig ;
12
12
13
- type AppState : Default ;
13
+ type AppState ;
14
14
15
15
type InstanceBuilder : FactorInstanceBuilder ;
16
16
@@ -29,10 +29,7 @@ pub trait Factor: Any + Sized {
29
29
fn configure_app < T : RuntimeFactors > (
30
30
& self ,
31
31
ctx : ConfigureAppContext < T , Self > ,
32
- ) -> anyhow:: Result < Self :: AppState > {
33
- _ = ctx;
34
- Ok ( Default :: default ( ) )
35
- }
32
+ ) -> anyhow:: Result < Self :: AppState > ;
36
33
37
34
fn prepare < T : RuntimeFactors > (
38
35
ctx : PrepareContext < Self > ,
You can’t perform that action at this time.
0 commit comments