Skip to content

Commit

Permalink
comment out unused code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Oct 10, 2024
1 parent f64cb0f commit 8105645
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions inngest/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
config::Config,
event::Event,
function::{Function, Input, InputCtx, ServableFn},
header::{self, Headers},
header::{Headers},
result::{Error, FlowControlVariant, SdkResponse},
sdk::Request,
signature::Signature,
Expand Down Expand Up @@ -266,24 +266,24 @@ struct RunRequestBody<T: 'static> {
events: Vec<Event<T>>,
use_api: bool,
steps: HashMap<String, Option<Value>>,
version: i32,
// version: i32,
}

#[derive(Deserialize, Debug)]
struct RunRequestCtx {
attempt: u8,
disable_immediate_execution: bool,
// disable_immediate_execution: bool,
env: String,
fn_id: String,
// fn_id: String,
run_id: String,
step_id: String,
stack: RunRequestCtxStack,
// step_id: String,
// stack: RunRequestCtxStack,
}

#[derive(Deserialize, Debug)]
struct RunRequestCtxStack {
current: u32,
stack: Vec<String>,
// current: u32,
// stack: Vec<String>,
}

#[derive(Clone, PartialEq, Eq)]
Expand Down
12 changes: 6 additions & 6 deletions inngest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ use crate::handler::Kind;

pub(crate) const CONTENT_TYPE: &str = "content-type";
pub(crate) const RETRY_AFTER: &str = "retry-after";
pub(crate) const SERVER_TIMING: &str = "server-timing";
pub(crate) const USER_AGENT: &str = "user-agent";
// pub(crate) const SERVER_TIMING: &str = "server-timing";
// pub(crate) const USER_AGENT: &str = "user-agent";
pub(crate) const HOST: &str = "host";

// Inngest specific ones
pub(crate) const INNGEST_ENV: &str = "x-inngest-env";
pub(crate) const INNGEST_EXPECTED_SERVER_KIND: &str = "x-inngest-expected-server-kind";
// pub(crate) const INNGEST_ENV: &str = "x-inngest-env";
// pub(crate) const INNGEST_EXPECTED_SERVER_KIND: &str = "x-inngest-expected-server-kind";
pub(crate) const INNGEST_FRAMEWORK: &str = "x-inngest-framework";
pub(crate) const INNGEST_NO_RETRY: &str = "x-inngest-no-retry";
// pub(crate) const INNGEST_NO_RETRY: &str = "x-inngest-no-retry";
pub(crate) const INNGEST_REQ_VERSION: &str = "x-inngest-req-version";
pub(crate) const INNGEST_SDK: &str = "x-inngest-sdk";
pub(crate) const INNGEST_SERVER_KIND: &str = "x-inngest-server-kind";
pub(crate) const INNGEST_SIGNATURE: &str = "x-inngest-signature";
pub(crate) const INNGEST_SYNC_KIND: &str = "x-inngest-sync-kind";
// pub(crate) const INNGEST_SYNC_KIND: &str = "x-inngest-sync-kind";

pub struct Headers(HashMap<String, String>);

Expand Down

0 comments on commit 8105645

Please sign in to comment.