This commit is contained in:
Karl Seguin
2025-02-17 12:14:11 +08:00
parent c4eeef2a86
commit 18080cef9f

View File

@@ -1699,8 +1699,9 @@ const MockCDP = struct {
self.messages.deinit(allocator);
}
fn processMessage(self: *MockCDP, message: []const u8) void {
fn processMessage(self: *MockCDP, message: []const u8) bool {
const owned = self.allocator.dupe(u8, message) catch unreachable;
self.messages.append(self.allocator, owned) catch unreachable;
return true;
}
};