k6 pressure test

This commit is contained in:
M1ngdaXie
2026-02-03 16:13:59 -08:00
parent 0ec58ca866
commit 35c4aa2580
5 changed files with 405 additions and 3 deletions

View File

@@ -51,9 +51,9 @@ type Hub struct {
func NewHub() *Hub {
return &Hub{
rooms: make(map[string]*Room),
Register: make(chan *Client),
Unregister: make(chan *Client),
Broadcast: make(chan *Message, 1024),
Register: make(chan *Client, 256),
Unregister: make(chan *Client, 256),
Broadcast: make(chan *Message, 4096),
}
}