We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3afe7 commit 7c36043Copy full SHA for 7c36043
apps/matching-service/main.go
@@ -1,7 +1,6 @@
1
package main
2
3
import (
4
- "context"
5
"fmt"
6
"log"
7
"matching-service/handlers"
@@ -10,7 +9,6 @@ import (
10
9
"os"
11
12
"github.com/joho/godotenv"
13
- "github.com/redis/go-redis/v9"
14
)
15
16
func main() {
@@ -19,15 +17,15 @@ func main() {
19
17
if err != nil {
20
18
log.Fatalf("err loading: %v", err)
21
}
22
-
+
23
// Setup redis client
24
processes.SetupRedisClient()
25
26
// Run a goroutine that matches users
27
28
// Routes
29
http.HandleFunc("/match", handlers.HandleWebSocketConnections)
30
31
// Start the server
32
port := os.Getenv("PORT")
33
log.Println(fmt.Sprintf("Server starting on :%s", port))
0 commit comments