Skip to content

Commit

Permalink
fix: end_point is null
Browse files Browse the repository at this point in the history
Signed-off-by: shize <shize@yunshan.net>
  • Loading branch information
incoffeemonster authored and lzf575 committed Aug 29, 2024
1 parent e23b3f3 commit 958a449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/src/flow_generator/protocol_logs/rpc/tars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ impl TarsInfo {
}
info.req_method_name =
Some(str::from_utf8(&payload[len..len + size]).ok()?.to_string());

info.endpoint = info.get_endpoint();
}
_ => {
info.msg_type = LogMessageType::Response;
Expand Down Expand Up @@ -290,7 +292,6 @@ impl TarsInfo {
info.resp_status = L7ResponseStatus::Ok;
}
}
info.endpoint = info.get_endpoint();
}
},
_ => return None,
Expand Down

0 comments on commit 958a449

Please sign in to comment.