cdp: use an enum for SessionID

This commit is contained in:
Pierre Tachoire
2025-01-29 18:38:05 +01:00
parent a74c9e8481
commit 6d530691f3
4 changed files with 30 additions and 6 deletions

View File

@@ -348,7 +348,7 @@ pub const Ctx = struct {
const s = try std.fmt.allocPrint(
allocator,
tpl,
.{ msg_open, ctx.state.sessionID orelse cdp.ContextSessionID },
.{ msg_open, @tagName(ctx.state.sessionID) },
);
try ctx.send(s);