mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-10-29 17:16:31 +00:00
remove unneeded code
This commit is contained in:
parent
0f9436ee44
commit
2fe8d6af8c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user