Skip to content

Commit

Permalink
Merge pull request #281 from codecrafters-io/andy/patch
Browse files Browse the repository at this point in the history
Update multiple PING commands stage in course definition
  • Loading branch information
andy1li authored Dec 4, 2024
2 parents b49ccdc + 56aea66 commit e917f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions course-definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ stages:
$ ./your_program.sh
```
It'll then send two PING commands using the same connection:
It'll then send multiple PING commands using the same connection. For example, it might send:
```bash
$ echo -e "PING\nPING" | redis-cli
```
The tester will expect to receive two `+PONG\r\n` responses.
The tester will expect to receive multiple `+PONG\r\n` responses (one for each command sent).
{{#lang_is_javascript}}
In most languages, you'd need to run a loop that reads input from a connection and sends a
Expand All @@ -251,7 +251,7 @@ stages:
- Just like the previous stage, you can hardcode `+PONG\r\n` as the response for this stage. We'll get to parsing
client input in later stages.
- The two PING commands will be sent using the same connection. We'll get to handling multiple connections in later stages.
- The PING commands will be sent using the same connection. We'll get to handling multiple connections in later stages.
marketing_md: |-
In this stage, you'll respond to multiple
[PING](https://redis.io/commands/ping) commands sent by the same client.
Expand Down

0 comments on commit e917f15

Please sign in to comment.