remove unneeded code

This commit is contained in:
Chris kerr 2024-07-19 21:19:57 -04:00
parent 8ba117e2a4
commit 0f9436ee44

View File

@ -60,18 +60,6 @@ func Handler(ws *websocket.Conn) {
continue continue
} }
// Store the event in the appropriate MongoDB collection
//var collection *mongo.Collection
//switch evt.Kind {
//case 0:
// collection = eventKind0Collection
//case 1:
// collection = eventKind1Collection
//default:
// fmt.Println("Unknown event kind:", evt.Kind)
// continue
//}
err = events.HandleEvent(context.TODO(), evt) err = events.HandleEvent(context.TODO(), evt)
if err != nil { if err != nil {
fmt.Println("Error handling event:", err) fmt.Println("Error handling event:", err)