mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
refactor(dynamic): unify message middleware collection across brokers, enhance SSA receiver type checks, and expand test coverage
This commit is contained in:
parent
17fa611b63
commit
cc083eb38f
15 changed files with 557 additions and 60 deletions
|
|
@ -88,7 +88,7 @@ impl FrameworkAdapter for KafkaPythonAdapter {
|
|||
fn detect_kafka_python(
|
||||
summary: &FuncSummary,
|
||||
ssa_summary: Option<&SsaFuncSummary>,
|
||||
_ast: tree_sitter::Node<'_>,
|
||||
ast: tree_sitter::Node<'_>,
|
||||
file_bytes: &[u8],
|
||||
) -> Option<FrameworkBinding> {
|
||||
let matches_call = super::any_callee_matches(summary, callee_is_kafka_consumer);
|
||||
|
|
@ -113,7 +113,7 @@ fn detect_kafka_python(
|
|||
route: None,
|
||||
request_params: Vec::new(),
|
||||
response_writer: None,
|
||||
middleware: Vec::new(),
|
||||
middleware: super::collect_message_middleware(Lang::Python, ast, file_bytes),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue