mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
Config: support agent mode in wsMaxConcurrent
This commit is contained in:
@@ -131,7 +131,7 @@ pub fn httpMaxResponseSize(self: *const Config) ?usize {
|
||||
|
||||
pub fn wsMaxConcurrent(self: *const Config) u8 {
|
||||
return switch (self.mode) {
|
||||
inline .serve, .fetch, .mcp => |opts| opts.common.ws_max_concurrent orelse 8,
|
||||
inline .serve, .fetch, .mcp, .agent => |opts| opts.common.ws_max_concurrent orelse 8,
|
||||
else => unreachable,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user