diff --git a/inngest/src/handler.rs b/inngest/src/handler.rs index 09cbead..71dc943 100644 --- a/inngest/src/handler.rs +++ b/inngest/src/handler.rs @@ -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, @@ -266,24 +266,24 @@ struct RunRequestBody { events: Vec>, use_api: bool, steps: HashMap>, - 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, + // current: u32, + // stack: Vec, } #[derive(Clone, PartialEq, Eq)] diff --git a/inngest/src/header.rs b/inngest/src/header.rs index 39a5a34..cad9e8e 100644 --- a/inngest/src/header.rs +++ b/inngest/src/header.rs @@ -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);