X-Git-Url: https://gitweb.ps.run/chirp/blobdiff_plain/4440a97c5a3bc8dca03198dbe0d9474978aa8904..e4dc8452f905c132418055d7f2a49f9ea2eb1ddb:/src/main.zig diff --git a/src/main.zig b/src/main.zig index 7fe3b63..7aa34bb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -463,16 +463,12 @@ pub fn Paginate(comptime T: type) type { it.idx = try parse_enum(T.Base.Key, starting_at_str, 16); } - if (it.idx == null) { - return error.InvalidIterator; - } - return .{ .res = res, .view = view, .per_page = per_page, .it = it, - .starting_idx = it.idx.?, + .starting_idx = it.idx, }; } pub fn next(self: *Self) IterateResult { @@ -1657,9 +1653,10 @@ pub fn main() !void { server.wait(); while (true) { const req = (server.next_request(&req_buffer) catch break) orelse break; - handle_request(env, req) catch { - try handle_error(env, req); - }; + // handle_request(env, req) catch { + // try handle_error(env, req); + // }; + try handle_request(env, req); } } // const ThreadCount = 1;