From 6ef1a605031c75dac6c4b7af5c5c7e507a133432 Mon Sep 17 00:00:00 2001 From: Eishun Kondoh Date: Wed, 2 May 2018 16:24:33 +0900 Subject: [PATCH] Update README --- CHANGELOG.md | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c311f82..114ed07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ ### Bugs Fixed * tres/secure_channel: Fix to interpolate terms when logging +* tres/message_handler: Fix to use `DynamicSupervisor` instead of `:simple_one_for_one` diff --git a/README.md b/README.md index 69efd9b..9628a3a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ config :tres, ``` To use `Tres.Controller` with your code, set the handler callback_module to your callback module. -This module must implement the `Module.start_link/2` that returns `on_start`. +This module must implement the `Module.start_link/1` that returns `on_start`. Set the callback_args to the terms you want pass to the `start_link/2` callback function. @@ -35,7 +35,7 @@ defmodule Sample do use GenServer use Tres.Controller - def start_link(datapath_id, _start_args) do + def start_link([datapath_id, _start_args]) do GenServer.start_link(__MODULE__, [datapath_id]) end