aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-07-20 21:55:47 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-07-20 21:55:47 -0400
commit1aa04a48e10420f244c96a6f44d71721d10bc63f (patch)
treed30d9b465ea900cea90b98628c4a78877c8f0bd6 /lib
parent8b4fb26473256da5eaa89f3e9d2ac5d44f1e9b88 (diff)
Official broker plugin obsolescence
Diffstat (limited to 'lib')
-rw-r--r--lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
index 679c91d..d62c831 100644
--- a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
+++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
@@ -139,8 +139,16 @@ namespace VNLib.Plugins.Extensions.VNCache
while (true)
{
- //Wait for a discovery to complete
- await _index.WaitForDiscoveryAsync(exitToken);
+ try
+ {
+ //Wait for a discovery to complete
+ await _index.WaitForDiscoveryAsync(exitToken);
+ }
+ catch(CacheDiscoveryFailureException cdfe)
+ {
+ pluginLog.Error("Failed to discover nodes, will try again\n{err}", cdfe.Message);
+ //Continue
+ }
//Get the next node to connect to
CacheNodeAdvertisment? node = _index.GetNextNode();