Skip to content

Commit 938a2b4

Browse files
authored
Merge pull request #303 from codecrafters-io/andy/fix
CC-1731: Fix Redis #bs1 and #xu1
2 parents f584fec + c371508 commit 938a2b4

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

course-definition.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,17 +2893,19 @@ stages:
28932893
[
28942894
"stream_key",
28952895
[
2896-
"0-2",
28972896
[
2898-
"temperature",
2899-
"96"
2897+
"0-2",
2898+
[
2899+
"temperature",
2900+
"96"
2901+
]
29002902
]
29012903
]
29022904
]
29032905
]
29042906
```
29052907
2906-
It'll send another `XREAD` command to your server with the `BLOCK` command but this time, it'll wait for 2000 milliseconds before checking the response of your server.
2908+
It'll send another `XREAD` command to your server with the `BLOCK` command but this time, it'll wait for 1000 milliseconds before checking the response of your server.
29072909
29082910
```bash
29092911
$ redis-cli XREAD block 1000 streams stream_key 0-2
@@ -3018,10 +3020,12 @@ stages:
30183020
[
30193021
"stream_key",
30203022
[
3021-
"0-2",
30223023
[
3023-
"temperature",
3024-
"95"
3024+
"0-2",
3025+
[
3026+
"temperature",
3027+
"95"
3028+
]
30253029
]
30263030
]
30273031
]
@@ -3146,17 +3150,19 @@ stages:
31463150
[
31473151
"stream_key",
31483152
[
3149-
"0-2",
31503153
[
3151-
"temperature",
3152-
"95"
3154+
"0-2",
3155+
[
3156+
"temperature",
3157+
"95"
3158+
]
31533159
]
31543160
]
31553161
]
31563162
]
31573163
```
31583164
3159-
It'll send another `XREAD` command to your server with the `BLOCK` command but this time, it'll wait for 2000 milliseconds before checking the response of your server.
3165+
It'll send another `XREAD` command to your server with the `BLOCK` command but this time, it'll wait for 1000 milliseconds before checking the response of your server.
31603166
31613167
```bash
31623168
$ redis-cli XREAD block 1000 streams stream_key $

0 commit comments

Comments
 (0)