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)
|
||||
{
|
||||
// Per-attempt row: kind discriminates channel, status carries the
|
||||
// per-attempt result.
|
||||
// Per-attempt row: kind discriminates channel; status is always
|
||||
// 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 status = context.Outcome == CachedCallAttemptOutcome.Delivered
|
||||
? 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 status = AuditStatus.Attempted;
|
||||
|
||||
var packet = BuildPacket(
|
||||
context,
|
||||
|
||||
Reference in New Issue
Block a user