From 1aa04a48e10420f244c96a6f44d71721d10bc63f Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 20 Jul 2023 21:55:47 -0400 Subject: Official broker plugin obsolescence --- lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib') 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(); -- cgit