chore: reformat emqx_bridge_api

This commit is contained in:
Zhongwen Deng 2022-04-29 09:08:45 +08:00
parent a26b0f79f2
commit 03d2a1ebb6
1 changed files with 9 additions and 5 deletions

View File

@ -622,11 +622,15 @@ aggregate_metrics(AllMetrics) ->
format_resp(Data) -> format_resp(Data) ->
format_resp(Data, node()). format_resp(Data, node()).
format_resp(#{ format_resp(
type := Type, #{
name := BridgeName, type := Type,
raw_config := RawConf, name := BridgeName,
resource_data := #{status := Status, metrics := Metrics}}, Node) -> raw_config := RawConf,
resource_data := #{status := Status, metrics := Metrics}
},
Node
) ->
RawConfFull = fill_defaults(Type, RawConf), RawConfFull = fill_defaults(Type, RawConf),
RawConfFull#{ RawConfFull#{
type => Type, type => Type,