Skip to content

Commit 59c439a

Browse files
committed
Chore: rename to distributed-timer
1 parent 2b360df commit 59c439a

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "boulder-timer"
3-
version = "0.1.0"
2+
name = "distributed-timer"
3+
version = "1.0.0"
44
edition = "2021"
55
build = "build.rs"
66

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ RUN apk add --no-cache build-base nodejs npm ca-certificates
88
RUN echo $(rustup show | head -n 1 | awk '{print $NF}') > /platform
99
# TODO: remove once 1.68 is released
1010
RUN rustup update nightly
11-
RUN cargo +nightly -Z sparse-registry build --release --target $(cat /platform) --bin boulder-timer
12-
RUN mv target/$(cat /platform)/release/boulder-timer boulder-timer
11+
RUN cargo +nightly -Z sparse-registry build --release --target $(cat /platform) --bin distributed-timer
12+
RUN mv target/$(cat /platform)/release/distributed-timer distributed-timer
1313

1414
FROM scratch
1515
COPY --from=build \
1616
/etc/ssl/certs/ca-certificates.crt \
1717
/etc/ssl/certs/ca-certificates.crt
18-
COPY --from=build /build/boulder-timer /boulder-timer
18+
COPY --from=build /build/distributed-timer /distributed-timer
1919
EXPOSE 3000
20-
CMD ["/boulder-timer"]
20+
CMD ["/distributed-timer"]

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# boulder-timer
2-
A simple, distributed boulder timer for competitions.
1+
# distributed-timer
2+
3+
A simple, distributed timer, originally designed for bouldering for competitions.

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "client",
3-
"version": "0.0.1",
2+
"name": "distributed-timer-client",
3+
"version": "1.0.0",
44
"private": true,
55
"scripts": {
66
"dev": "vite dev",

src/routes/timer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async fn auth_middleware<B>(
9191
next: Next<B>,
9292
) -> Result<Response, StatusCode> {
9393
let mut validation = Validation::new(Algorithm::default());
94-
validation.set_issuer(&["de:itsblue:synced-timer"]);
94+
validation.set_issuer(&["de:itsblue:distributed-timer"]);
9595
validation.validate_exp = false;
9696

9797
let token = decode::<Claims>(
@@ -141,7 +141,7 @@ fn create_jwt(id: String, key: &str) -> String {
141141
let claims = Claims {
142142
id: id,
143143
exp: 0,
144-
iss: "de:itsblue:synced-timer".to_string(),
144+
iss: "de:itsblue:distributed-timer".to_string(),
145145
};
146146

147147
encode(

0 commit comments

Comments
 (0)