refactor(auditlog): remove dead-code ternary in CachedCallLifecycleBridge (#23 M3 final-review fix)
This commit is contained in:
@@ -75,16 +75,13 @@ public sealed class CachedCallLifecycleBridge : ICachedCallLifecycleObserver
|
|||||||
|
|
||||||
private async Task EmitAttemptedAsync(CachedCallAttemptContext context, CancellationToken ct)
|
private async Task EmitAttemptedAsync(CachedCallAttemptContext context, CancellationToken ct)
|
||||||
{
|
{
|
||||||
// Per-attempt row: kind discriminates channel, status carries the
|
// Per-attempt row: kind discriminates channel; status is always
|
||||||
// per-attempt result.
|
// Attempted regardless of outcome (success vs. failure is captured
|
||||||
|
// by the companion HttpStatus / ErrorMessage fields, NOT by flipping
|
||||||
|
// the status — CachedResolve carries the terminal Status). Per the
|
||||||
|
// M3 brief and alog.md §4.
|
||||||
var kind = ChannelToAttemptKind(context.Channel);
|
var kind = ChannelToAttemptKind(context.Channel);
|
||||||
var status = context.Outcome == CachedCallAttemptOutcome.Delivered
|
var status = AuditStatus.Attempted;
|
||||||
? AuditStatus.Attempted
|
|
||||||
: AuditStatus.Attempted;
|
|
||||||
// (Note: per the M3 brief and alog.md §4 the per-attempt row always
|
|
||||||
// carries Status=Attempted; success vs. failure is captured by the
|
|
||||||
// companion HttpStatus / ErrorMessage fields, NOT by flipping the
|
|
||||||
// status. CachedResolve carries the terminal Status.)
|
|
||||||
|
|
||||||
var packet = BuildPacket(
|
var packet = BuildPacket(
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user