remove unneeded code

This commit is contained in:
Chris kerr 2024-07-19 21:24:34 -04:00
parent 2fe8d6af8c
commit 346637d3ba

View File

@ -30,9 +30,6 @@ func main() {
// Initialize collections // Initialize collections
events.InitCollections(client, config.Collections.EventKind0, config.Collections.EventKind1) events.InitCollections(client, config.Collections.EventKind0, config.Collections.EventKind1)
// Set the MongoDB collections in the requests package
requests.SetCollections(events.GetCollections())
// Start WebSocket server // Start WebSocket server
http.Handle("/", websocket.Handler(requests.Handler)) http.Handle("/", websocket.Handler(requests.Handler))
fmt.Println("WebSocket server started on", config.Server.Address) fmt.Println("WebSocket server started on", config.Server.Address)