mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-21 16:17:13 +00:00
events package renamed to kinds
This commit is contained in:
parent
567f6ec289
commit
2b0186e499
@ -1,4 +1,4 @@
|
||||
package events
|
||||
package kinds
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package events
|
||||
package kinds
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package events
|
||||
package kinds
|
||||
|
||||
import (
|
||||
"context"
|
@ -5,7 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"grain/server/db"
|
||||
"grain/server/events"
|
||||
"grain/server/kinds"
|
||||
server "grain/server/types"
|
||||
"grain/server/utils"
|
||||
|
||||
@ -98,11 +98,11 @@ func HandleKind(ctx context.Context, evt server.Event, ws *websocket.Conn) {
|
||||
var err error
|
||||
switch evt.Kind {
|
||||
case 0:
|
||||
err = events.HandleKind0(ctx, evt, collection)
|
||||
err = kinds.HandleKind0(ctx, evt, collection)
|
||||
case 1:
|
||||
err = events.HandleKind1(ctx, evt, collection)
|
||||
err = kinds.HandleKind1(ctx, evt, collection)
|
||||
default:
|
||||
err = events.HandleUnknownKind(ctx, evt, collection)
|
||||
err = kinds.HandleUnknownKind(ctx, evt, collection)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user