i'm a genius 2
This commit is contained in:
@@ -140,7 +140,7 @@ public class BroadcastService : IHostedService, IMediatorSubscriber
|
||||
};
|
||||
}
|
||||
|
||||
_ = _apiController.SetBroadcastStatus(msg.HashedCid, msg.Enabled, groupDto).ConfigureAwait(false);
|
||||
await _apiController.SetBroadcastStatus(msg.HashedCid, msg.Enabled, groupDto).ConfigureAwait(false);
|
||||
|
||||
_logger.LogInformation("Broadcast {Status} for {Cid}", msg.Enabled ? "enabled" : "disabled", msg.HashedCid);
|
||||
|
||||
@@ -354,6 +354,7 @@ public class BroadcastService : IHostedService, IMediatorSubscriber
|
||||
_logger.LogDebug("OnTick skipped: waiting for TTL fetch");
|
||||
return;
|
||||
}
|
||||
|
||||
var expiry = _config.Current.BroadcastTtl;
|
||||
var remaining = expiry - DateTime.UtcNow;
|
||||
_remainingTtl = remaining > TimeSpan.Zero ? remaining : null;
|
||||
|
||||
Reference in New Issue
Block a user