Skip to content

Commit 55ee071

Browse files
committed
feat: Refactor WeaviateClient to remove token service factory and streamline async initialization
1 parent c80eee2 commit 55ee071

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Weaviate.Client/DependencyInjection/WeaviateClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private async Task<WeaviateClient> CreateClientAsync(string name)
7070
var logger = _loggerFactory.CreateLogger<WeaviateClient>();
7171

7272
var clientOptions = Options.Create(options);
73-
var client = new WeaviateClient(clientOptions, null, logger);
73+
var client = new WeaviateClient(clientOptions, logger);
7474

7575
// Initialize the client
7676
await client.InitializeAsync();

src/Weaviate.Client/WeaviateClient.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public partial class WeaviateClient : IDisposable
2121

2222
// Async initialization support
2323
private readonly Lazy<Task>? _initializationTask;
24-
private readonly ITokenServiceFactory? _tokenServiceFactory;
2524
private readonly ClientConfiguration? _configForAsyncInit;
2625

2726
public async Task<Models.MetaInfo> GetMeta(CancellationToken cancellationToken = default)

0 commit comments

Comments
 (0)