From 0349e9e18298868ab8184da213089d8935a1aefc Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Mon, 25 Dec 2023 23:07:42 +0800 Subject: [PATCH] fix --- apps/iot/src/iot_device_sup.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/iot/src/iot_device_sup.erl b/apps/iot/src/iot_device_sup.erl index 6af3d70..9b9d26d 100644 --- a/apps/iot/src/iot_device_sup.erl +++ b/apps/iot/src/iot_device_sup.erl @@ -19,7 +19,7 @@ init([]) -> {ok, DeviceInfos} = device_bo:get_all_devices(), 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()}. ensured_device_started(DeviceUUID) when is_binary(DeviceUUID) ->