diff --git a/CHANGELOG.md b/CHANGELOG.md index 091512b..66eb5f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.11.1 - 2024-08-19 + +- Fixed support for older versions of Gleam. + ## v0.11.0 - 2024-08-16 - The `gleam/otp/static_supervisor` module has been added, containing bindings diff --git a/gleam.toml b/gleam.toml index a66f4e6..aa5ee82 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "gleam_otp" -version = "0.11.0" +version = "0.11.1" licences = ["Apache-2.0"] description = "Fault tolerant multicore Gleam programs with OTP" diff --git a/src/gleam/otp/static_supervisor.gleam b/src/gleam/otp/static_supervisor.gleam index e4b0e29..81af54d 100644 --- a/src/gleam/otp/static_supervisor.gleam +++ b/src/gleam/otp/static_supervisor.gleam @@ -199,7 +199,7 @@ pub fn worker_child( run starter: fn() -> Result(Pid, whatever), ) -> ChildBuilder { ChildBuilder( - id:, + id: id, starter: fn() { starter() |> result.map_error(dynamic.from) }, restart: Permanent, significant: False, @@ -221,7 +221,7 @@ pub fn supervisor_child( run starter: fn() -> Result(Pid, whatever), ) -> ChildBuilder { ChildBuilder( - id:, + id: id, starter: fn() { starter() |> result.map_error(dynamic.from) }, restart: Permanent, significant: False,