THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

check gitignore

pull/72/head
catcherwong 7 months ago
parent
commit
6fde515fa3
  1. 2
      .gitignore
  2. 30
      src/Nacos/V2/Naming/Backups/FailoverReactor.cs

2
.gitignore

@ -236,7 +236,7 @@ Generated_Code/
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
# Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/

30
src/Nacos/V2/Naming/Backups/FailoverReactor.cs

@ -0,0 +1,30 @@
namespace Nacos.V2.Naming.Backups
{
using Nacos.V2.Naming.Cache;
using System.Collections.Concurrent;
public class FailoverReactor
{
private string failoverDir;
private ServiceInfoHolder serviceInfoHolder;
public FailoverReactor(ServiceInfoHolder serviceInfoHolder, string cacheDir)
{
this.serviceInfoHolder = serviceInfoHolder;
this.failoverDir = cacheDir + "/failover";
this.Init();
}
private void Init()
{
}
private ConcurrentDictionary<string, ServiceInfo> serviceMap = new ConcurrentDictionary<string, ServiceInfo>();
private ConcurrentDictionary<string, string> switchParams = new ConcurrentDictionary<string, string>();
/*private static readonly long DAY_PERIOD_MINUTES = 24 * 60;*/
}
}
Loading…
Cancel
Save