fix
This commit is contained in:
parent
c00593313e
commit
0349e9e182
@ -19,7 +19,7 @@ init([]) ->
|
|||||||
{ok, DeviceInfos} = device_bo:get_all_devices(),
|
{ok, DeviceInfos} = device_bo:get_all_devices(),
|
||||||
Specs = lists:map(fun child_spec/1, DeviceInfos),
|
Specs = lists:map(fun child_spec/1, DeviceInfos),
|
||||||
|
|
||||||
{ok, {#{strategy => one_for_one, intensity => 1000, period => 3600}, [Specs]}}.
|
{ok, {#{strategy => one_for_one, intensity => 1000, period => 3600}, Specs}}.
|
||||||
|
|
||||||
-spec ensured_device_started(UUID :: binary()) -> {ok, Pid :: pid()} | {error, Reason :: any()}.
|
-spec ensured_device_started(UUID :: binary()) -> {ok, Pid :: pid()} | {error, Reason :: any()}.
|
||||||
ensured_device_started(DeviceUUID) when is_binary(DeviceUUID) ->
|
ensured_device_started(DeviceUUID) when is_binary(DeviceUUID) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user