From 8f9848a76603354ab2d414baf8ceffc4f085c56d Mon Sep 17 00:00:00 2001 From: timmytofu Date: Sun, 8 Apr 2018 12:10:36 -0400 Subject: [PATCH 1/2] Fixes small typo --- getting-started/mix-otp/dynamic-supervisor.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/mix-otp/dynamic-supervisor.markdown b/getting-started/mix-otp/dynamic-supervisor.markdown index 9dbc09920..2c7aaeb3b 100644 --- a/getting-started/mix-otp/dynamic-supervisor.markdown +++ b/getting-started/mix-otp/dynamic-supervisor.markdown @@ -48,7 +48,7 @@ Since the bucket terminated, the registry went away with it, and our test fails test/kv/registry_test.exs:33: (test) ``` -We are going to solve this issue by defining a new supervisor that will spawn and supervise all buckets. Opposite to the previous Supervisor we defined, the children are not known upfront, but they are rather started dynamically. For those situations, we use a `DynamicSupervisor`. The `DynamicSupervisor` does not expect a list of children during initialization, instead each works is started manually via `DynamicSupervisor.start_child/2`. +We are going to solve this issue by defining a new supervisor that will spawn and supervise all buckets. Opposite to the previous Supervisor we defined, the children are not known upfront, but they are rather started dynamically. For those situations, we use a `DynamicSupervisor`. The `DynamicSupervisor` does not expect a list of children during initialization, instead each is started manually via `DynamicSupervisor.start_child/2`. ## The bucket supervisor From 3c3c492bd942179ffc7c75d1fa85adf366c92cd4 Mon Sep 17 00:00:00 2001 From: timmy_tofu Date: Mon, 9 Apr 2018 15:39:47 -0400 Subject: [PATCH 2/2] Typo fixup - adds word child rather than just eliminating works --- getting-started/mix-otp/dynamic-supervisor.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/mix-otp/dynamic-supervisor.markdown b/getting-started/mix-otp/dynamic-supervisor.markdown index 2c7aaeb3b..3a71c6dc3 100644 --- a/getting-started/mix-otp/dynamic-supervisor.markdown +++ b/getting-started/mix-otp/dynamic-supervisor.markdown @@ -48,7 +48,7 @@ Since the bucket terminated, the registry went away with it, and our test fails test/kv/registry_test.exs:33: (test) ``` -We are going to solve this issue by defining a new supervisor that will spawn and supervise all buckets. Opposite to the previous Supervisor we defined, the children are not known upfront, but they are rather started dynamically. For those situations, we use a `DynamicSupervisor`. The `DynamicSupervisor` does not expect a list of children during initialization, instead each is started manually via `DynamicSupervisor.start_child/2`. +We are going to solve this issue by defining a new supervisor that will spawn and supervise all buckets. Opposite to the previous Supervisor we defined, the children are not known upfront, but they are rather started dynamically. For those situations, we use a `DynamicSupervisor`. The `DynamicSupervisor` does not expect a list of children during initialization, instead each child is started manually via `DynamicSupervisor.start_child/2`. ## The bucket supervisor