Skip to content

Commit

Permalink
Fixes for GenStage chapter (#2332)
Browse files Browse the repository at this point in the history
- [x] remove useless dir creation, it is created with project generation
- [x] add missing printout with 0 case, it is even number as well
- [x] remove pid 121 from first bunch, as bunches by default much bigger
  • Loading branch information
ShPakvel committed Jun 21, 2020
1 parent 4a49d92 commit 9a37e0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions en/lessons/advanced/gen-stage.md
@@ -1,5 +1,5 @@
---
version: 1.1.0
version: 1.1.1
title: GenStage
---

Expand Down Expand Up @@ -87,7 +87,6 @@ As we discussed before, we want to create a producer that emits a constant strea
Let's create our producer file:

```shell
$ mkdir lib/genstage_example
$ touch lib/genstage_example/producer.ex
```

Expand Down Expand Up @@ -223,6 +222,7 @@ If things are all correct, we can run our project and we should see everything w

```shell
$ mix run --no-halt
{#PID<0.109.0>, 0, :state_doesnt_matter}
{#PID<0.109.0>, 2, :state_doesnt_matter}
{#PID<0.109.0>, 4, :state_doesnt_matter}
{#PID<0.109.0>, 6, :state_doesnt_matter}
Expand Down Expand Up @@ -264,10 +264,10 @@ Now that we've configured two consumers, let's see what we get if we run our app

```shell
$ mix run --no-halt
{#PID<0.120.0>, 0, :state_doesnt_matter}
{#PID<0.120.0>, 2, :state_doesnt_matter}
{#PID<0.121.0>, 4, :state_doesnt_matter}
{#PID<0.120.0>, 4, :state_doesnt_matter}
{#PID<0.120.0>, 6, :state_doesnt_matter}
{#PID<0.120.0>, 8, :state_doesnt_matter}
...
{#PID<0.120.0>, 86478, :state_doesnt_matter}
{#PID<0.121.0>, 87338, :state_doesnt_matter}
Expand Down

0 comments on commit 9a37e0a

Please sign in to comment.