From 03d2a1ebb63f50585c8fedc2537babbe4529918f Mon Sep 17 00:00:00 2001 From: Zhongwen Deng Date: Fri, 29 Apr 2022 09:08:45 +0800 Subject: [PATCH] chore: reformat emqx_bridge_api --- apps/emqx_bridge/src/emqx_bridge_api.erl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/emqx_bridge/src/emqx_bridge_api.erl b/apps/emqx_bridge/src/emqx_bridge_api.erl index 18e41a5d6..1f65be183 100644 --- a/apps/emqx_bridge/src/emqx_bridge_api.erl +++ b/apps/emqx_bridge/src/emqx_bridge_api.erl @@ -622,11 +622,15 @@ aggregate_metrics(AllMetrics) -> format_resp(Data) -> format_resp(Data, node()). -format_resp(#{ - type := Type, - name := BridgeName, - raw_config := RawConf, - resource_data := #{status := Status, metrics := Metrics}}, Node) -> +format_resp( + #{ + type := Type, + name := BridgeName, + raw_config := RawConf, + resource_data := #{status := Status, metrics := Metrics} + }, + Node +) -> RawConfFull = fill_defaults(Type, RawConf), RawConfFull#{ type => Type,