atproto utils for zig zat.dev
atproto sdk zig
26
fork

Configure Feed

Select the types of activity you want to include in your feed.

handle error.WriteFailed in repo_verifier invertOp/rootCid switches

MstError includes WriteFailed (from Io.Writer.Allocating.drain when
allocation fails). map it to OutOfMemory since that's the underlying
cause.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+2 -2
src/internal/repo/repo_verifier.zig
··· 443 443 // 9. invert each operation 444 444 for (sorted_ops) |op| { 445 445 mst.invertOp(&inverted, op) catch |err| switch (err) { 446 - error.OutOfMemory => return error.OutOfMemory, 446 + error.OutOfMemory, error.WriteFailed => return error.OutOfMemory, 447 447 error.InversionMismatch => return error.InversionMismatch, 448 448 error.PartialTree => return error.PartialTree, 449 449 }; ··· 451 451 452 452 // 10. compute root CID of inverted tree 453 453 const inverted_root = inverted.rootCid() catch |err| switch (err) { 454 - error.OutOfMemory => return error.OutOfMemory, 454 + error.OutOfMemory, error.WriteFailed => return error.OutOfMemory, 455 455 error.PartialTree => return error.PartialTree, 456 456 }; 457 457