Skip to content

Commit

Permalink
Reintroduce redis trigger to spin up
Browse files Browse the repository at this point in the history
Signed-off-by: Lann Martin <[email protected]>
  • Loading branch information
lann committed Aug 22, 2024
1 parent eaaf1f0 commit ee57c81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spin-telemetry = { path = "crates/telemetry", features = [
spin-templates = { path = "crates/templates" }
spin-trigger2 = { path = "crates/trigger2" }
spin-trigger-http2 = { path = "crates/trigger-http2" }
# TODO: spin-trigger-redis = { path = "crates/trigger-redis" }
spin-trigger-redis = { path = "crates/trigger-redis" }

tempfile = "3.8.0"
tokio = { version = "1.23", features = ["full"] }
Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ error: the `wasm32-wasi` target is not installed
std::fs::create_dir_all("target/test-programs").unwrap();

build_wasm_test_program("core-wasi-test.wasm", "crates/core/tests/core-wasi-test");
build_wasm_test_program("redis-rust.wasm", "crates/trigger-redis/tests/rust");

build_wasm_test_program(
"spin-http-benchmark.wasm",
Expand Down
6 changes: 3 additions & 3 deletions src/bin/spin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use spin_cli::{build_info::*, subprocess::ExitStatusError};
use spin_trigger2::cli::help::HelpArgsOnlyTrigger;
use spin_trigger2::cli::FactorsTriggerCommand;
use spin_trigger_http2::HttpTrigger;
// TODO(factors): use spin_trigger_redis::RedisTrigger;
use spin_trigger_redis::RedisTrigger;

#[tokio::main]
async fn main() {
Expand Down Expand Up @@ -137,7 +137,7 @@ enum SpinApp {
#[derive(Subcommand)]
enum TriggerCommands {
Http(FactorsTriggerCommand<HttpTrigger>),
// TODO(factors): Redis(TriggerExecutorCommand<RedisTrigger>),
Redis(FactorsTriggerCommand<RedisTrigger>),
#[clap(name = spin_cli::HELP_ARGS_ONLY_TRIGGER_TYPE, hide = true)]
HelpArgsOnly(FactorsTriggerCommand<HelpArgsOnlyTrigger>),
}
Expand All @@ -155,7 +155,7 @@ impl SpinApp {
Self::Registry(cmd) => cmd.run().await,
Self::Build(cmd) => cmd.run().await,
Self::Trigger(TriggerCommands::Http(cmd)) => cmd.run().await,
// TODO(factors): Self::Trigger(TriggerCommands::Redis(cmd)) => cmd.run().await,
Self::Trigger(TriggerCommands::Redis(cmd)) => cmd.run().await,
Self::Trigger(TriggerCommands::HelpArgsOnly(cmd)) => cmd.run().await,
Self::Plugins(cmd) => cmd.run().await,
Self::External(cmd) => execute_external_subcommand(cmd, app).await,
Expand Down

0 comments on commit ee57c81

Please sign in to comment.