mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-20 22:49:36 +08:00
Removed Consumer Group in PubSub module and made the module more compatible with redis client
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user