diff options
| author | t <t@tjp.lol> | 2026-06-22 18:18:28 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-23 09:34:55 -0600 |
| commit | 538a5d926fa626a00cc3dc12c555f11f82867efd (patch) | |
| tree | 7ea3b84ea5086d67973d0b427ec7c382eb635e50 /libpanto/src/session.zig | |
| parent | a417727810cc6722b3c82e3c9e9b46982ef40a08 (diff) | |
libpanto ponytail-audit simplifications
Diffstat (limited to 'libpanto/src/session.zig')
| -rw-r--r-- | libpanto/src/session.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpanto/src/session.zig b/libpanto/src/session.zig index 843989a..35fd09b 100644 --- a/libpanto/src/session.zig +++ b/libpanto/src/session.zig @@ -15,8 +15,8 @@ //! is recorded in entries but does NOT round-trip into the in-memory //! conversation, because providers don't need it for request serialization. //! -//! Format version: 1 (see `CURRENT_VERSION`). Migrations live in -//! `session_manager.zig`. +//! Format version: 1 (see `CURRENT_VERSION`). No prior versions exist; +//! when v2 lands, a migration step on load can transform v1 entries. const std = @import("std"); const Allocator = std.mem.Allocator; @@ -73,8 +73,8 @@ pub const WireStamp = struct { }; /// Bumped whenever the on-disk format changes in a way that older readers -/// cannot tolerate. Older files are upgraded by `migrate()` on load and -/// the file is rewritten once. +/// cannot tolerate. When that happens, add a load-time migration that +/// upgrades older files and rewrites them once. pub const CURRENT_VERSION: u32 = 1; // ============================================================================= |
