Removed Consumer Group in PubSub module and made the module more compatible with redis client

This commit is contained in:
Kelvin Clement Mwinuka
2024-02-27 17:45:20 +08:00
parent 160c701c3a
commit fc8d301525
4 changed files with 71 additions and 233 deletions

View File

@@ -228,6 +228,11 @@ func (server *Server) handleConnection(ctx context.Context, conn net.Conn) {
chunkSize := 1024
// If the length of the response is 0, return nothing to the client
if len(res) == 0 {
continue
}
if len(res) <= chunkSize {
_, err = w.Write(res)
if err != nil {