clean up docs
This commit is contained in:
parent
d5ac873245
commit
ef9368818c
|
@ -1,4 +1,6 @@
|
|||
defmodule Farmbot.BotState do
|
||||
@moduledoc "JSON Serializable state tree that gets pushed over variour transports."
|
||||
|
||||
use GenStage
|
||||
require Logger
|
||||
@version Mix.Project.config()[:version]
|
||||
|
@ -25,8 +27,11 @@ defmodule Farmbot.BotState do
|
|||
end
|
||||
|
||||
def init([]) do
|
||||
{:producer_consumer, struct(__MODULE__), subscribe_to: [Farmbot.Firmware],
|
||||
dispatcher: GenStage.BroadcastDispatcher}
|
||||
{
|
||||
:producer_consumer,
|
||||
struct(__MODULE__),
|
||||
subscribe_to: [Farmbot.Firmware], dispatcher: GenStage.BroadcastDispatcher
|
||||
}
|
||||
end
|
||||
|
||||
def handle_events(events, _from, state) do
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
defmodule Farmbot.BotState.Supervisor do
|
||||
@moduledoc false
|
||||
use Supervisor
|
||||
|
||||
def start_link(token, opts) do
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
defmodule Farmbot.BotState.Transport.Supervisor do
|
||||
@moduledoc ""
|
||||
@moduledoc false
|
||||
|
||||
use Supervisor
|
||||
|
||||
|
|
Loading…
Reference in a new issue