From dc0fc53fd3c3f6c32c8b0d063922c7018fa2c48f Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 12 Jun 2023 19:04:15 -0400 Subject: Baby steps for autonomous nodes --- lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs') diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs index ae6ca59..9f5ccfe 100644 --- a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs +++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs @@ -112,7 +112,7 @@ namespace VNLib.Plugins.Extensions.VNCache //Connection authentication methods Client.GetCacheConfiguration() .WithVerificationKey(cachePub) - .WithSigningCertificate(clientPriv) + .WithSigningKey(clientPriv) .WithBrokerVerificationKey(brokerPub); } @@ -127,7 +127,7 @@ namespace VNLib.Plugins.Extensions.VNCache while (true) { //Load the server list - ActiveServer[]? servers; + ICachePeerAdvertisment[]? servers; while (true) { try @@ -163,8 +163,8 @@ namespace VNLib.Plugins.Extensions.VNCache pluginLog.Debug("Connecting to random cache server"); //Connect to a random server - ActiveServer selected = await Client.ConnectToRandomCacheAsync(exitToken); - pluginLog.Debug("Connected to cache server {s}", selected.ServerId); + ICachePeerAdvertisment selected = await Client.ConnectToRandomCacheAsync(exitToken); + pluginLog.Debug("Connected to cache server {s}", selected.NodeId); //Set connection status flag IsConnected = true; -- cgit