mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-22 08:37:13 +00:00
remove unneeded code
This commit is contained in:
parent
0f9436ee44
commit
2fe8d6af8c
@ -7,17 +7,9 @@ import (
|
|||||||
|
|
||||||
"grain/events"
|
"grain/events"
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
|
||||||
"golang.org/x/net/websocket"
|
"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) {
|
func Handler(ws *websocket.Conn) {
|
||||||
var msg string
|
var msg string
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user