This was not caught by our tests because we always test bridge types in isolation. So, if the config only contains ingress-only bridges, the `on_message_publish` hook is never installed. In a real system, if there are bridges of mixed types in the config, the hook might be installed, and `emqx_bridge:get_matched_bridge_id` would crash when iterating over the ingress bridges. |
||
|---|---|---|
| .. | ||
| proto | ||
| schema | ||
| emqx_bridge_api.erl | ||
| emqx_bridge_app.erl | ||
| emqx_bridge_resource.erl | ||
| emqx_bridge_sup.erl | ||
| emqx_bridge.app.src | ||
| emqx_bridge.erl | ||