Skip to content

Commit

Permalink
Use ipc shm implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
bwoebi committed Sep 4, 2024
1 parent fc5c6c6 commit 0003a71
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 362 deletions.
1 change: 0 additions & 1 deletion sidecar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ mod unix;
pub use unix::*;

pub mod service;
pub mod shm_limiters;
mod tokio_util;
#[cfg(windows)]
mod windows;
Expand Down
359 changes: 0 additions & 359 deletions sidecar/src/shm_limiters.rs

This file was deleted.

2 changes: 1 addition & 1 deletion sidecar/src/shm_remote_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::one_way_shared_memory::{
open_named_shm, OneWayShmReader, OneWayShmWriter, ReaderOpener,
};
use crate::primary_sidecar_identifier;
use crate::shm_limiters::ShmLimiter;
use crate::tracer::SHM_LIMITER;
use base64::prelude::BASE64_URL_SAFE_NO_PAD;
use base64::Engine;
Expand Down Expand Up @@ -33,6 +32,7 @@ use std::time::Duration;
use tokio::time::Instant;
use tracing::{debug, error, trace, warn};
use zwohash::ZwoHasher;
use datadog_ipc::rate_limiter::ShmLimiter;

pub struct RemoteConfigWriter(OneWayShmWriter<NamedShmHandle>);
pub struct RemoteConfigReader(OneWayShmReader<NamedShmHandle, CString>);
Expand Down
2 changes: 1 addition & 1 deletion sidecar/src/tracer.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
// SPDX-License-Identifier: Apache-2.0

use crate::shm_limiters::ShmLimiterMemory;
use datadog_trace_utils::config_utils::trace_intake_url_prefixed;
use ddcommon::Endpoint;
use http::uri::PathAndQuery;
use lazy_static::lazy_static;
use std::str::FromStr;
use std::sync::Mutex;
use datadog_ipc::rate_limiter::ShmLimiterMemory;

#[derive(Default)]
pub struct Config {
Expand Down

0 comments on commit 0003a71

Please sign in to comment.