Skip to content

Commit d554148

Browse files
authored
fix: remove long traces while waiting for consumer to receive message
2 parents a7eb56c + 8ac418a commit d554148

6 files changed

Lines changed: 10 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/target
22
.env
3-
/heathcheck
3+
/healthcheck
44

55

66
### Linux ###

Dockerfile.chronos

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.66.0-buster AS BUILD
1+
FROM rust:1.75.0-bookworm AS BUILD
22
# Install software
33
RUN update-ca-certificates && apt-get update && apt-get install -y libsasl2-dev
44
# Create appuser
@@ -19,9 +19,9 @@ COPY ./ .
1919
RUN cargo build -p chronos_bin --release
2020

2121
#
22-
# Run image based on buster-slim to reduce image size while still using glibc
22+
# Run image based on bookworm-slim to reduce image size while still using glibc
2323
#
24-
FROM debian:buster-slim AS RUN
24+
FROM debian:bookworm-slim AS RUN
2525
# SASL supports
2626
RUN apt-get update && apt-get install -y libsasl2-dev
2727
WORKDIR /opt/build

Dockerfile.chronos-pg-migrations

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.66.0-buster AS BUILD
1+
FROM rust:1.75.0-bookworm AS BUILD
22
# Install software
33
RUN update-ca-certificates && apt-get update && apt-get install -y libsasl2-dev
44
# Create appuser
@@ -19,9 +19,9 @@ COPY ./ .
1919
RUN cargo build -p pg_mig --release
2020

2121
#
22-
# Run image based on buster-slim to reduce image size while still using glibc
22+
# Run image based on bookworm-slim to reduce image size while still using glibc
2323
#
24-
FROM debian:buster-slim AS RUN
24+
FROM debian:bookworm-slim AS RUN
2525
# SASL supports
2626
RUN apt-get update && apt-get install -y libsasl2-dev
2727
WORKDIR /opt/build

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pg.create:
5050
## pg.migrate: 🥁 Run migrations on database
5151
pg.migrate:
5252
$(call pp,running migrations on database...)
53-
cargo run --package pg_mig --bin chronos-pg-migrations
53+
cargo run --package pg_mig --bin chronos-pg-migrations
5454

5555
# TEST / DEPLOY ###################################################################################
5656

@@ -83,7 +83,7 @@ run:
8383
## run: 🧪 Runs rust app in release mode
8484
run.release:
8585
$(call pp,run app...)
86-
cargo run --package chronos_bin --r --bin chronos
86+
cargo run --package chronos_bin -r --bin chronos
8787

8888

8989
## lint: 🧹 Checks for lint failures on rust

chronos_bin/src/kafka/consumer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ impl KafkaConsumer {
6565
};
6666
}
6767

68-
#[instrument(skip(self))]
6968
pub(crate) async fn kafka_consume_message(&self) -> Result<BorrowedMessage, KafkaAdapterError> {
7069
self.consumer.recv().await.map_err(KafkaAdapterError::ReceiveMessage)
7170
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "stable" #1.68
2+
channel = "1.75"

0 commit comments

Comments
 (0)