Skip to content

Commit 1222d17

Browse files
committed
Remove unused code
1 parent c813531 commit 1222d17

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backend/matching-service/config/rabbitmq.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const sendToQueue = async (
5151
category: string,
5252
language: string,
5353
data: MatchRequestItem
54-
) => {
54+
): Promise<boolean> => {
5555
try {
5656
const queueName = `${complexity}_${category}_${language}`;
5757
const senderChannel = await mrConnection.createChannel();

backend/matching-service/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import http from "http";
22
import app, { allowedOrigins } from "./app.ts";
33
import { handleWebsocketMatchEvents } from "./src/handlers/websocketHandler.ts";
44
import { Server } from "socket.io";
5-
import { connectRabbitMq, connectToRabbitMq } from "./config/rabbitmq.ts";
5+
import { connectToRabbitMq } from "./config/rabbitmq.ts";
66

77
const server = http.createServer(app);
88
export const io = new Server(server, {
@@ -21,7 +21,6 @@ const PORT = process.env.SERVICE_PORT || 3002;
2121

2222
if (process.env.NODE_ENV !== "test") {
2323
connectToRabbitMq()
24-
// connectRabbitMq()
2524
.then(() => {
2625
console.log("RabbitMq connected!");
2726

0 commit comments

Comments
 (0)