mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-20 22:49:36 +08:00
Implemented tests for SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE, and PUNSUBSCRIBE command handlers
This commit is contained in:
@@ -261,7 +261,10 @@ func (server *Server) StartTCP(ctx context.Context) {
|
||||
}
|
||||
|
||||
func (server *Server) handleConnection(ctx context.Context, conn net.Conn) {
|
||||
server.ACL.RegisterConnection(&conn)
|
||||
// If ACL module is loaded, register the connection with the ACL
|
||||
if server.ACL != nil {
|
||||
server.ACL.RegisterConnection(&conn)
|
||||
}
|
||||
|
||||
w, r := io.Writer(conn), io.Reader(conn)
|
||||
|
||||
|
Reference in New Issue
Block a user