style(tracker): standardize string quotations
Switched from single to double quotes throughout tracker.js for consistent string formatting. This improves code readability and maintains uniformity across the project.
This commit is contained in:
parent
f2ece65e12
commit
269f19401e
1 changed files with 6 additions and 6 deletions
12
tracker.js
12
tracker.js
|
@ -1,7 +1,7 @@
|
||||||
import { Server } from 'bittorrent-tracker';
|
import { Server } from "bittorrent-tracker";
|
||||||
|
|
||||||
const PORT = process.env.TRACKER_PORT || 8106;
|
const PORT = process.env.TRACKER_PORT || 8106;
|
||||||
const HOST = process.env.TRACKER_HOST || 'localhost';
|
const HOST = process.env.TRACKER_HOST || "localhost";
|
||||||
|
|
||||||
const server = new Server({
|
const server = new Server({
|
||||||
udp: true,
|
udp: true,
|
||||||
|
@ -10,16 +10,16 @@ const server = new Server({
|
||||||
stats: true,
|
stats: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on('error', (err) => {
|
server.on("error", (err) => {
|
||||||
console.error(`Error: ${err.message}`);
|
console.error(`Error: ${err.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on('warning', (err) => {
|
server.on("warning", (err) => {
|
||||||
console.warn(`Warning: ${err.message}`);
|
console.warn(`Warning: ${err.message}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
server.on('listening', () => {
|
server.on("listening", () => {
|
||||||
console.log(`Tracker is listening on http://${HOST}:${PORT}`);
|
console.log(`Tracker is listening on http://${HOST}:${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen(PORT);
|
server.listen(PORT);
|
||||||
|
|
Loading…
Reference in a new issue