Commit a7b797d
Fix never-returning xreadgroup case in example (#11)
By default `XGROUP CREATE` passes `$` as the ID which means "serve all IDs added from this point on".
Due to that, the `XADD` directly above never gets served to the `XREADGROUP` command and this example will just hang the first time you run it waiting.
Adding an explicit ID of 0 means we will get the previous message back in the `XREADGROUP`.1 parent 207d415 commit a7b797d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments