Skip to content

Commit

Permalink
force release and remove redundant private modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinagud committed Oct 28, 2024
1 parent 43f7b55 commit c64b705
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/DataPointParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ namespace RaaLabs.Edge.Connectors.OPCUA;

public class DataPointParser : ICreateDatapointsFromDataValues
{
private readonly ConnectorConfiguration _configuration;
private readonly ILogger _logger;
private readonly IMetricsHandler _metrics;
private readonly TimeProvider _clock;
readonly ConnectorConfiguration _configuration;
readonly ILogger _logger;
readonly IMetricsHandler _metrics;
readonly TimeProvider _clock;

public DataPointParser(ConnectorConfiguration configuration, ILogger logger, IMetricsHandler metrics, TimeProvider clock)
{
Expand All @@ -38,15 +38,15 @@ public OpcuaDatapointOutput CreateDatapointFrom(NodeValue nodeValue)
};
}

private void LogWarningIfStatusCodeIsNotGood(NodeValue nodeValue)
void LogWarningIfStatusCodeIsNotGood(NodeValue nodeValue)
{
if (StatusCode.IsGood(nodeValue.Value.StatusCode) && StatusCode.IsNotBad(nodeValue.Value.StatusCode)) return;

_logger.Warning("Bad status code for node {NodeId} - {StatusCode}", nodeValue.Node, nodeValue.Value.StatusCode);
_metrics.NumberOfBadStatusCodesFor(1, nodeValue.Node.ToString()!);
}

private void LogWarningIfFaultyTimestamp(NodeValue nodeValue, DateTime timestamp, string timestampType)
void LogWarningIfFaultyTimestamp(NodeValue nodeValue, DateTime timestamp, string timestampType)
{
var dateTimeOffset = (DateTimeOffset) timestamp;
var utcNow = _clock.GetUtcNow();
Expand Down

0 comments on commit c64b705

Please sign in to comment.