diff --git a/requests/requests.go b/requests/requests.go index 0e81890..068f064 100644 --- a/requests/requests.go +++ b/requests/requests.go @@ -7,17 +7,9 @@ import ( "grain/events" - "go.mongodb.org/mongo-driver/mongo" "golang.org/x/net/websocket" ) -var eventKind0Collection, eventKind1Collection *mongo.Collection - -func SetCollections(collections map[string]*mongo.Collection) { - eventKind0Collection = collections["eventKind0"] - eventKind1Collection = collections["eventKind1"] -} - func Handler(ws *websocket.Conn) { var msg string for {