Skip to content

Commit

Permalink
feat: remove forced inline
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Dec 21, 2024
1 parent 3321020 commit 10952bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/http/router/route.zig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn Route(comptime Server: type, comptime AppState: type) type {
}

/// Set a handler function for the provided method.
inline fn inner_route(
fn inner_route(
comptime method: Method,
self: Self,
handler_fn: HandlerFn,
Expand Down
6 changes: 3 additions & 3 deletions src/http/server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub const Security = union(enum) {
/// of a response. This is used when we already know what we want to send.
///
/// See: `route_and_respond`
pub inline fn raw_respond(p: *Provision) !RecvStatus {
pub fn raw_respond(p: *Provision) !RecvStatus {
{
const status_code: u16 = if (p.response.status) |status| @intFromEnum(status) else 0;
const status_name = if (p.response.status) |status| @tagName(status) else "No Status";
Expand Down Expand Up @@ -645,7 +645,7 @@ pub fn Server(comptime security: Security, comptime AppState: type) type {

if (job_tls.encrypted_count >= job_tls.encrypted.len) {
if (send_job.count >= send_job.slice.len) {
try @call(.always_inline, func, .{ rt, true, provision });
try @call(.auto, func, .{ rt, true, provision });
} else {
// Queue a new chunk up for sending.
log.debug(
Expand Down Expand Up @@ -700,7 +700,7 @@ pub fn Server(comptime security: Security, comptime AppState: type) type {
send_job.count += send_count;

if (send_job.count >= send_job.slice.len) {
try @call(.always_inline, func, .{ rt, true, provision });
try @call(.auto, func, .{ rt, true, provision });
} else {
log.debug(
"{d} - sending next chunk starting at index {d}",
Expand Down

0 comments on commit 10952bf

Please sign in to comment.