Skip to content

Commit a7f928c

Browse files
committed
rename: VariablesPreparationExecutorHook
Signed-off-by: Aminu Oluwaseun Joshua <[email protected]>
1 parent 0fd7c37 commit a7f928c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/runtime-factors/src/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use spin_runtime_config::ResolvedRuntimeConfig;
88
use spin_trigger::cli::{
99
FactorsConfig, InitialKvSetterHook, KeyValueDefaultStoreSummaryHook, MaxInstanceMemoryHook,
1010
RuntimeFactorsBuilder, SqlStatementExecutorHook, SqliteDefaultStoreSummaryHook,
11-
StdioLoggingExecutorHooks, VariablesPreparationExecutorHooks,
11+
StdioLoggingExecutorHooks, VariablesPreparationExecutorHook,
1212
};
1313
use spin_variables_static::StaticVariablesProvider;
1414

@@ -72,7 +72,7 @@ impl RuntimeFactorsBuilder for FactorsBuilder {
7272
executor.add_hooks(InitialKvSetterHook::new(args.key_values.clone()));
7373
executor.add_hooks(SqliteDefaultStoreSummaryHook);
7474
executor.add_hooks(KeyValueDefaultStoreSummaryHook);
75-
executor.add_hooks(VariablesPreparationExecutorHooks);
75+
executor.add_hooks(VariablesPreparationExecutorHook);
7676

7777
let max_instance_memory = args
7878
.max_instance_memory

crates/trigger/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use sqlite_statements::SqlStatementExecutorHook;
2626
use stdio::FollowComponents;
2727
pub use stdio::StdioLoggingExecutorHooks;
2828
pub use summary::{KeyValueDefaultStoreSummaryHook, SqliteDefaultStoreSummaryHook};
29-
pub use variable::VariablesPreparationExecutorHooks;
29+
pub use variable::VariablesPreparationExecutorHook;
3030

3131
pub const APP_LOG_DIR: &str = "APP_LOG_DIR";
3232
pub const SPIN_TRUNCATE_LOGS: &str = "SPIN_TRUNCATE_LOGS";

crates/trigger/src/cli/variable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use spin_factors::RuntimeFactors;
33
use spin_factors_executor::ExecutorHooks;
44

55
/// An executor hook that prepares the variables factor before runtime execution.
6-
pub struct VariablesPreparationExecutorHooks;
6+
pub struct VariablesPreparationExecutorHook;
77

88
#[spin_core::async_trait]
9-
impl<F: RuntimeFactors, U> ExecutorHooks<F, U> for VariablesPreparationExecutorHooks {
9+
impl<F: RuntimeFactors, U> ExecutorHooks<F, U> for VariablesPreparationExecutorHook {
1010
async fn configure_app(
1111
&self,
1212
configured_app: &spin_factors::ConfiguredApp<F>,

0 commit comments

Comments
 (0)