Skip to content

Commit 3747701

Browse files
committed
Fix return
1 parent 07a007f commit 3747701

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datadog-sidecar-ffi/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
422422
path: CharSlice,
423423
operation_name: CharSlice,
424424
resource_name: CharSlice,
425-
) {
425+
) -> MaybeError {
426426
let endpoint = TelemetryActions::AddEndpoint(ddtelemetry::data::Endpoint {
427427
r#type: Some(r#type.to_utf8_lossy().into_owned()),
428428
method: Some(method),
@@ -437,6 +437,7 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
437437
queue_id,
438438
vec![SidecarAction::Telemetry(endpoint)],
439439
));
440+
MaybeError::None
440441
}
441442

442443
/// Reports a dependency to the telemetry.

0 commit comments

Comments
 (0)