fix refactor error

This commit is contained in:
Sam Lewis
2022-10-31 01:20:52 -04:00
parent 8a59770936
commit ce6649dd29
2 changed files with 3 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ func SubscribeToEventType(eventType string, conn *websocket.Conn, ctx context.Co
}
err := WriteMessage(e, conn, ctx)
if err != nil {
panic("Error writing to websocket: ", err)
panic(fmt.Sprintf("Error writing to websocket: %s", err))
}
// m, _ := ReadMessage(conn, ctx)
// log.Default().Println(string(m))