We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7383951 commit d3bc818Copy full SHA for d3bc818
src/grpc/iot_config/hpr_route_stream_worker.erl
@@ -259,12 +259,6 @@ handle_call({refresh_route, RouteID}, _From, State) ->
259
260
Reply =
261
case {DevaddrResponse, EUIResponse, SKFResponse} of
262
- {{error, _} = Err, _, _} ->
263
- Err;
264
- {_, {error, _} = Err, _} ->
265
266
- {_, _, {error, _} = Err} ->
267
268
{{ok, {DBefore, DAfter}}, {ok, {EBefore, EAfter}}, {ok, {SBefore, SAfter}}} ->
269
LenSAfter = length(SAfter),
270
LenDAfter = length(DAfter),
@@ -290,6 +284,12 @@ handle_call({refresh_route, RouteID}, _From, State) ->
290
284
devaddr_added => length(DAfter -- DBefore)
291
285
}}
292
286
end;
287
+ {{error, _} = Err, _, _} ->
288
+ Err;
289
+ {_, {error, _} = Err, _} ->
+ {_, _, {error, _} = Err} ->
293
Other ->
294
{error, {unexpected_response, Other}}
295
end,
0 commit comments