From a892409543eab14f3104970ac7a5ae7bd3571cc6 Mon Sep 17 00:00:00 2001 From: Jordan Janzen Date: Wed, 15 Dec 2021 15:06:50 -0800 Subject: [PATCH] Use HashSet instead of List --- .../Domain/Sensors/MicrophoneProcessSensor.cs | 2 +- hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs b/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs index f834740..645c67b 100644 --- a/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs +++ b/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs @@ -10,7 +10,7 @@ namespace hass_workstation_service.Domain.Sensors { public class MicrophoneProcessSensor : AbstractSensor { - private List processes = new List(); + private HashSet processes = new HashSet(); public MicrophoneProcessSensor(MqttPublisher publisher, int? updateInterval = null, string name = "MicrophoneProcess", Guid id = default) : base(publisher, name ?? "MicrophoneProcess", updateInterval ?? 10, id) { diff --git a/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs b/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs index a35b390..bc4c90b 100644 --- a/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs +++ b/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs @@ -10,7 +10,7 @@ namespace hass_workstation_service.Domain.Sensors { public class WebcamProcessSensor : AbstractSensor { - private List processes = new List(); + private HashSet processes = new HashSet(); public WebcamProcessSensor(MqttPublisher publisher, int? updateInterval = null, string name = "WebcamProcess", Guid id = default) : base(publisher, name ?? "WebcamProcess", updateInterval ?? 10, id) {