aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Plugins.Extensions.VNCache/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-06-12 19:04:15 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-06-12 19:04:15 -0400
commitdc0fc53fd3c3f6c32c8b0d063922c7018fa2c48f (patch)
tree92f963014624a1016f6cb645af5afd18278c54c3 /lib/VNLib.Plugins.Extensions.VNCache/src
parent392b38a40e01f2d4dbd457da122dfaf7a1ffe00f (diff)
Baby steps for autonomous nodes
Diffstat (limited to 'lib/VNLib.Plugins.Extensions.VNCache/src')
-rw-r--r--lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs8
1 files changed, 4 insertions, 4 deletions
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;