|
@@ -250,7 +250,7 @@ namespace HealthMonitor.Service.Resolver |
|
|
if (string.IsNullOrWhiteSpace(schedule_push)) |
|
|
if (string.IsNullOrWhiteSpace(schedule_push)) |
|
|
{ |
|
|
{ |
|
|
// 注册首次下推 |
|
|
// 注册首次下推 |
|
|
#if DEBUG |
|
|
|
|
|
|
|
|
#if DEBUG1 |
|
|
await _serviceEtcd.PutValAsync(key, result, 60*1, false).ConfigureAwait(false); |
|
|
await _serviceEtcd.PutValAsync(key, result, 60*1, false).ConfigureAwait(false); |
|
|
#else |
|
|
#else |
|
|
//DateTime sNow = DateTime.Now; |
|
|
//DateTime sNow = DateTime.Now; |
|
@@ -280,7 +280,7 @@ namespace HealthMonitor.Service.Resolver |
|
|
timeUntilNextRun = timeUntilNextRun.Add(TimeSpan.FromDays(1)); |
|
|
timeUntilNextRun = timeUntilNextRun.Add(TimeSpan.FromDays(1)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var ttl = timeUntilNextRun.Seconds; |
|
|
|
|
|
|
|
|
var ttl =(long)timeUntilNextRun.TotalSeconds; |
|
|
await _serviceEtcd.PutValAsync(key, result,ttl, false).ConfigureAwait(false); |
|
|
await _serviceEtcd.PutValAsync(key, result,ttl, false).ConfigureAwait(false); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|