i'm a genius 2

This commit is contained in:
2025-09-24 07:18:08 +09:00
parent 9d850f8fa6
commit 0c38b9397a

View File

@@ -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;