events package renamed to kinds

This commit is contained in:
0ceanSlim 2024-07-23 13:22:55 -04:00
parent 567f6ec289
commit 2b0186e499
4 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
package events package kinds
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package events package kinds
import ( import (
"context" "context"

View File

@ -1,4 +1,4 @@
package events package kinds
import ( import (
"context" "context"

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"grain/server/db" "grain/server/db"
"grain/server/events" "grain/server/kinds"
server "grain/server/types" server "grain/server/types"
"grain/server/utils" "grain/server/utils"
@ -98,11 +98,11 @@ func HandleKind(ctx context.Context, evt server.Event, ws *websocket.Conn) {
var err error var err error
switch evt.Kind { switch evt.Kind {
case 0: case 0:
err = events.HandleKind0(ctx, evt, collection) err = kinds.HandleKind0(ctx, evt, collection)
case 1: case 1:
err = events.HandleKind1(ctx, evt, collection) err = kinds.HandleKind1(ctx, evt, collection)
default: default:
err = events.HandleUnknownKind(ctx, evt, collection) err = kinds.HandleUnknownKind(ctx, evt, collection)
} }
if err != nil { if err != nil {