From 3c1e890e7c630eeb7f4b5a2b1f7d7ffe63bf8ee2 Mon Sep 17 00:00:00 2001 From: Kirsan <17767561+kirsan31@users.noreply.github.com> Date: Tue, 19 May 2026 13:33:38 +0300 Subject: [PATCH] Unnecessary _apiKey member removed. --- src/Databento.Client/Live/LiveClient.cs | 2 -- src/Databento.Client/Reference/ReferenceClient.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Databento.Client/Live/LiveClient.cs b/src/Databento.Client/Live/LiveClient.cs index 7ea7d50..5d7679e 100644 --- a/src/Databento.Client/Live/LiveClient.cs +++ b/src/Databento.Client/Live/LiveClient.cs @@ -30,7 +30,6 @@ public sealed class LiveClient : ILiveClient private readonly bool _sendTsOut; private readonly VersionUpgradePolicy _upgradePolicy; private readonly TimeSpan _heartbeatInterval; - private readonly string _apiKey; private readonly ILogger _logger; private readonly ExceptionCallback? _exceptionHandler; private readonly ResilienceOptions _resilienceOptions; @@ -131,7 +130,6 @@ internal LiveClient( if (string.IsNullOrEmpty(apiKey)) throw new ArgumentException("API key cannot be null or empty", nameof(apiKey)); - _apiKey = apiKey; _defaultDataset = defaultDataset; _sendTsOut = sendTsOut; _upgradePolicy = upgradePolicy; diff --git a/src/Databento.Client/Reference/ReferenceClient.cs b/src/Databento.Client/Reference/ReferenceClient.cs index 8f5b7a4..bb1efff 100644 --- a/src/Databento.Client/Reference/ReferenceClient.cs +++ b/src/Databento.Client/Reference/ReferenceClient.cs @@ -14,7 +14,6 @@ namespace Databento.Client.Reference; public sealed class ReferenceClient : IReferenceClient { private readonly HttpClient _httpClient; - private readonly string _apiKey; private readonly string _baseUrl; private readonly ILogger _logger; private bool _disposed; @@ -83,7 +82,6 @@ internal ReferenceClient( if (string.IsNullOrEmpty(apiKey)) throw new ArgumentException("API key cannot be null or empty", nameof(apiKey)); - _apiKey = apiKey; _logger = logger ?? NullLogger.Instance; // Map gateway to base URL