Skip to content

Commit 734af1a

Browse files
feat: remove space
1 parent 0621671 commit 734af1a

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

agent-control/src/agent_control/http_server/async_bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn run_async_sync_bridge(
1414
agent_control_consumer: EventConsumer<AgentControlEvent>,
1515
sub_agent_consumer: EventConsumer<SubAgentEvent>,
1616
) -> JoinHandle<()> {
17-
thread::Builder::new().name("AC sync events to/from Status Http server async events bridge ".to_string()).spawn(move || loop {
17+
thread::Builder::new().name("AC sync events to/from Status Http server async events bridge".to_string()).spawn(move || loop {
1818
select! {
1919
recv(&agent_control_consumer.as_ref()) -> sa_event_res => {
2020
match sa_event_res {

agent-control/src/agent_control/http_server/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Runner {
5656
maybe_opamp_client_config: Option<OpAMPClientConfig>,
5757
) -> JoinHandle<()> {
5858
thread::Builder::new()
59-
.name("Http server ".to_string())
59+
.name("Http server".to_string())
6060
.spawn(move || {
6161
// Create 2 unbounded channel to send the Agent Control and Sub Agent Sync events
6262
// to the Async Status Server
@@ -98,7 +98,7 @@ impl Runner {
9898
sub_agent_consumer: EventConsumer<SubAgentEvent>,
9999
) -> JoinHandle<()> {
100100
thread::Builder::new()
101-
.name("No-action consumer ".to_string())
101+
.name("No-action consumer".to_string())
102102
.spawn(move || loop {
103103
select! {
104104
recv(agent_control_consumer.as_ref()) -> agent_control_consumer_res => {

agent-control/src/k8s/garbage_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ where
8686
let interval = self.interval;
8787

8888
let handle = thread::Builder::new()
89-
.name("Garbage collector ".to_string())
89+
.name("Garbage collector".to_string())
9090
.spawn(move || {
9191
loop {
9292
let _ = self

agent-control/src/sub_agent/health/health_checker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub(crate) fn spawn_health_checker<H>(
221221
H: HealthChecker + Send + 'static,
222222
{
223223
thread::Builder::new()
224-
.name("Health checker ".to_string())
224+
.name("Health checker".to_string())
225225
.spawn(move || loop {
226226
debug!(%agent_id, "starting to check health with the configured checker");
227227

agent-control/src/sub_agent/k8s/supervisor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl NotStartedSupervisorK8s {
132132

133133
info!(%agent_id, "k8s objects supervisor started");
134134
let join_handle = thread::Builder::new()
135-
.name("K8s objects supervisor ".to_string())
135+
.name("K8s objects supervisor".to_string())
136136
.spawn(move || loop {
137137
// Check and apply k8s objects
138138
if let Err(err) =

agent-control/src/sub_agent/on_host/command/logging/logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl Logger {
1515
S: ToString + Send + 'static,
1616
{
1717
std::thread::Builder::new()
18-
.name("OnHost logger ".to_string())
18+
.name("OnHost logger".to_string())
1919
.spawn(move || {
2020
match self {
2121
Self::File(file_logger, agent_id) => {

agent-control/src/sub_agent/on_host/command/logging/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ where
2727

2828
// In a separate thread, iterate over the handle to get the logs
2929
let sender_thread = std::thread::Builder::new()
30-
.name("OnHost log sender ".to_string())
30+
.name("OnHost log sender".to_string())
3131
.spawn(move || {
3232
let log_entries = BufReader::new(handle).lines();
3333
for line in log_entries {

agent-control/src/sub_agent/on_host/supervisor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl NotStartedSupervisorOnHost {
181181
shutdown_ctx.clone(),
182182
self.agent_id.clone(),
183183
);
184-
thread::Builder::new().name("OnHost process ".to_string()).spawn({
184+
thread::Builder::new().name("OnHost process".to_string()).spawn({
185185
move || loop {
186186
// locks the current_pid to prevent `wait_for_termination` finishing before the process
187187
// is started and the pid is set.
@@ -371,7 +371,7 @@ fn wait_for_termination(
371371
agent_id: AgentID,
372372
) -> JoinHandle<()> {
373373
thread::Builder::new()
374-
.name("OnHost Termination signal listener ".to_string())
374+
.name("OnHost Termination signal listener".to_string())
375375
.spawn(move || {
376376
let (lck, cvar) = Context::get_lock_cvar(&ctx);
377377
drop(cvar.wait_while(lck.lock().unwrap(), |finish| !*finish));

agent-control/src/sub_agent/sub_agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ where
139139
}
140140

141141
pub fn runtime(self) -> JoinHandle<Result<(), SubAgentError>> {
142-
thread::Builder::new().name("SubAgent runtime ".to_string()).spawn(move || {
142+
thread::Builder::new().name("SubAgent runtime".to_string()).spawn(move || {
143143
let mut supervisor = self.assemble_and_start_supervisor();
144144

145145
// Stores the current healthy state for logging purposes.

agent-control/src/sub_agent/version/version_checker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) fn spawn_version_checker<V>(
5151
V: VersionChecker + Send + Sync + 'static,
5252
{
5353
thread::Builder::new()
54-
.name("Version checker ".to_string())
54+
.name("Version checker".to_string())
5555
.spawn(move || loop {
5656
debug!(%agent_id, "starting to check version with the configured checker");
5757

0 commit comments

Comments
 (0)