Skip to content

Commit

Permalink
Bugfix release v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hmt committed Jul 24, 2024
1 parent 550e1ca commit 24f2a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import { red, green, yellow } from "@std/fmt/colors";
const SECRET = Deno.env.get("TINYSCALE_SECRET");
const _port = Deno.env.get("PORT");
const PORT = _port ? parseInt(_port) : undefined;
const VERSION = 'v2.0.0'
const VERSION = 'v2.0.1'

if (SECRET === undefined)
throw "No `TINYSCALE_SECRET` set. tinyscale will exit.";

if (SERVERS.length === 0)
throw "There are no servers listed in `servers.json`";
SERVERS.forEach(server => new Server(server.host, server.secret));

const date = () => new Date().toLocaleTimeString('de');
const queue: Map<string, Promise<unknown>> = new Map();
Expand Down Expand Up @@ -92,6 +91,7 @@ class Server {
}
}

SERVERS.forEach(server => new Server(server.host, server.secret));

Deno.serve({ port: PORT,
onListen({ port, hostname }) {
Expand Down

0 comments on commit 24f2a06

Please sign in to comment.