Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions engine/packages/pegboard-outbound/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use vbare::OwnedVersionedData;
mod metrics;

const X_RIVET_ENDPOINT: HeaderName = HeaderName::from_static("x-rivet-endpoint");
const X_RIVET_TOKEN: HeaderName = HeaderName::from_static("x-rivet-token");
const X_RIVET_POOL_NAME: HeaderName = HeaderName::from_static("x-rivet-pool-name");
const X_RIVET_NAMESPACE_NAME: HeaderName = HeaderName::from_static("x-rivet-namespace-name");
const SHUTDOWN_PROGRESS_INTERVAL: Duration = Duration::from_secs(7);
Expand Down Expand Up @@ -249,10 +248,6 @@ async fn handle(ctx: &StandaloneCtx, packet: protocol::ToOutbound) -> Result<()>
&url,
headers,
request_lifespan,
ctx.config()
.auth
.as_ref()
.map(|a| a.admin_token.read().as_str()),
)
.await;

Expand All @@ -275,17 +270,10 @@ async fn serverless_outbound_req(
url: &str,
headers: HashMap<String, String>,
request_lifespan: u32,
token: Option<&str>,
) -> Result<()> {
let current_dc = ctx.config().topology().current_dc()?;
let mut term_signal = TermSignal::get();

let token = if let Some(token) = token {
Some((X_RIVET_TOKEN, HeaderValue::try_from(token)?))
} else {
None
};

let headers = headers
.into_iter()
.flat_map(|(k, v)| {
Expand All @@ -306,7 +294,6 @@ async fn serverless_outbound_req(
HeaderValue::try_from(namespace_name)?,
),
])
.chain(token)
.collect();

let endpoint_url = format!("{}/start", url.trim_end_matches('/'));
Expand Down
17 changes: 2 additions & 15 deletions engine/sdks/typescript/envoy-client/src/tasks/envoy/index.ts

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

Loading