Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/main' into xvello/compare-payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed Sep 13, 2023
2 parents f93bb8e + eea90a5 commit a1d9404
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
build:
name: build and publish capture image
runs-on: ubuntu-latest
runs-on: buildjet-8vcpu-ubuntu-2204-arm
steps:

- name: Check Out Repo
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64
platforms: linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: RUST_BACKTRACE=1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.72.0 AS chef
FROM lukemathwalker/cargo-chef:latest-rust-1.72.0-buster AS chef
WORKDIR app

FROM chef AS planner
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mod utils;
#[tokio::main]
async fn main() {
let use_print_sink = env::var("PRINT_SINK").is_ok();
let address = env::var("ADDRESS").unwrap_or(String::from("127.0.0.1:3000"));

let app = if use_print_sink {
router::router(SystemTime {}, sink::PrintSink {})
Expand All @@ -32,11 +33,10 @@ async fn main() {

// run our app with hyper
// `axum::Server` is a re-export of `hyper::Server`
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));

tracing::debug!("listening on {}", addr);
tracing::info!("listening on {}", address);

axum::Server::bind(&addr)
axum::Server::bind(&address.parse().unwrap())
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
.await
.unwrap();
Expand Down

0 comments on commit a1d9404

Please sign in to comment.