better
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m56s

This commit is contained in:
matst80
2024-11-11 23:30:11 +01:00
parent 0b290a32bf
commit 2b8ebe3594
3 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ type Server struct {
func Listen(address string) (*Server, error) {
listener, err := net.Listen("tcp", address)
server := &Server{
NewTCPServerMux(100),
NewTCPServerMux(),
}
if err != nil {
@@ -40,7 +40,7 @@ type TCPServerMux struct {
functions map[uint32]func(data []byte) (uint32, []byte, error)
}
func NewTCPServerMux(maxClients int) *TCPServerMux {
func NewTCPServerMux() *TCPServerMux {
m := &TCPServerMux{
mu: sync.RWMutex{},
listeners: make(map[uint32]func(data []byte) error),