undo limited routine for event handler

This commit is contained in:
Chris kerr 2024-09-15 18:53:28 -04:00
parent 462fa0a4b1
commit 3526d2937e

View File

@ -16,7 +16,7 @@ import (
) )
func HandleEvent(ws *websocket.Conn, message []interface{}) { func HandleEvent(ws *websocket.Conn, message []interface{}) {
config.LimitedGoRoutine(func() {
if len(message) != 2 { if len(message) != 2 {
fmt.Println("Invalid EVENT message format") fmt.Println("Invalid EVENT message format")
response.SendNotice(ws, "", "Invalid EVENT message format") response.SendNotice(ws, "", "Invalid EVENT message format")
@ -64,7 +64,7 @@ func HandleEvent(ws *websocket.Conn, message []interface{}) {
db.StoreMongoEvent(context.TODO(), evt, ws) db.StoreMongoEvent(context.TODO(), evt, ws)
fmt.Println("Event processed:", evt.ID) fmt.Println("Event processed:", evt.ID)
})
} }
func handleBlacklistAndWhitelist(ws *websocket.Conn, evt nostr.Event) bool { func handleBlacklistAndWhitelist(ws *websocket.Conn, evt nostr.Event) bool {