+1
-1
backend/build.zig.zon
+1
-1
backend/build.zig.zon
+3
-3
backend/src/tap.zig
+3
-3
backend/src/tap.zig
···
217
217
// validate DID
218
218
const did = zat.Did.parse(rec.did) orelse return;
219
219
220
-
// build AT-URI string
221
-
const uri = try std.fmt.allocPrint(allocator, "at://{s}/{s}/{s}", .{ did.raw, rec.collection, rec.rkey });
222
-
defer allocator.free(uri);
220
+
// build AT-URI string (no allocation - uses stack buffer)
221
+
var uri_buf: [256]u8 = undefined;
222
+
const uri = zat.AtUri.format(&uri_buf, did.raw, rec.collection, rec.rkey) orelse return;
223
223
224
224
if (rec.isCreate() or rec.isUpdate()) {
225
225
const inner_record = zat.json.getObject(parsed.value, "record.record") orelse return;