mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-08 17:30:47 +08:00
Fixed PING echo command
This commit is contained in:
@@ -33,7 +33,7 @@ func handlePing(ctx context.Context, cmd []string, server utils.Server, conn *ne
|
||||
case 1:
|
||||
return []byte("+PONG\r\n\r\n"), nil
|
||||
case 2:
|
||||
return []byte(fmt.Sprintf("%s\r\n%d\r\n%s\r\n\r\n", "$", len(cmd[1]), cmd[1])), nil
|
||||
return []byte(fmt.Sprintf("$%d\r\n%s\r\n\r\n", len(cmd[1]), cmd[1])), nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user