mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-14 06:51:01 -04:00
config: support embed mode in http nav delay and burst
This commit is contained in:
1 parent
3cf612d390
commit
bbcc2f795d
1 file changed
+2
-2
+2
-2
@@ -586,7 +586,7 @@ pub fn httpMaxHostOpen(self: *const Config) u8 {
|
||||
|
||||
pub fn httpNavDelay(self: *const Config) ?u32 {
|
||||
const ms = switch (self.mode) {
|
||||
inline .serve, .fetch, .mcp, .agent => |opts| opts.http_nav_delay,
|
||||
inline .serve, .fetch, .mcp, .agent, .embed => |opts| opts.http_nav_delay,
|
||||
else => unreachable,
|
||||
} orelse return null;
|
||||
return if (ms == 0) null else ms;
|
||||
@@ -594,7 +594,7 @@ pub fn httpNavDelay(self: *const Config) ?u32 {
|
||||
|
||||
pub fn httpNavBurst(self: *const Config) u32 {
|
||||
const burst = switch (self.mode) {
|
||||
inline .serve, .fetch, .mcp, .agent => |opts| opts.http_nav_burst,
|
||||
inline .serve, .fetch, .mcp, .agent, .embed => |opts| opts.http_nav_burst,
|
||||
else => unreachable,
|
||||
} orelse 1;
|
||||
return @max(burst, 1);
|
||||
|
||||
Reference in new issue
Block a user