diff options
| author | tv <tv@krebsco.de> | 2026-11-09 14:35:55 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-09 16:14:06 +0100 |
| commit | 9247e3980130ebfed9ef265e996e47bf1f6c852d (patch) | |
| tree | dbfd798c61e27f7701e2135ff2269e8422675667 /src/swarm/reach.rs | |
| parent | cf2bfaf4f3d54eac5444ae74ecd1407b3eecedd5 (diff) | |
transport: a pushed change written out by its size, never its bytes
Review 4, F3: the console writes each message out with `{:#?}`, and `SyncBody` derived
`Debug`, so `Changes` (changes pushed as they are) printed every byte of every change.
Pushes are the small messages, and Automerge deflates no change under 256 bytes: a
short value's path and value went into the console in clear, which any user with any
capability reads (the page's `messages` events, and since 1266 a subscribed node's
`messages/own/{seq}` too), paths it may not read included.
`SyncBody` now writes itself out with sizes for the changes, as `SyncPayload` does
for an Automerge message; heads and a delta's spec stay as they were.
Diffstat (limited to 'src/swarm/reach.rs')
0 files changed, 0 insertions, 0 deletions
