July 2018
Intermediate to advanced
574 pages
14h 7m
English
The Notifier stage of the download pipeline subscribes to the Encryption stage. This stage shares the same Notifier module that also serves the upload pipeline. The difference lies in the process alias given to the download Notifier process (ElixirDrip.Storage.Pipeline.Notifier.Download), and in the new implementation of the notify_step/1 function that now pattern-matches on the :download value for the event type key. Everything else remains untouched:
$ cat apps/elixir_drip/lib/elixir_drip/storage/pipeline/notifier.exdefmodule ElixirDrip.Storage.Pipeline.Notifier do # ... def start_link(name, subscription_options), do: GenStage.start_link(__MODULE__, subscription_options, name: name) def init(subscription_options), do: ...
Read now
Unlock full access