mcp: inline mcpVersion helper from Config

This commit is contained in:
Adrià Arrufat
2026-03-30 07:13:45 +02:00
parent e083d4a3d1
commit 20e62a5551
2 changed files with 5 additions and 7 deletions

View File

@@ -189,12 +189,6 @@ pub fn webBotAuth(self: *const Config) ?WebBotAuthConfig {
};
}
pub fn mcpVersion(self: *const Config) []const u8 {
return switch (self.mode) {
.mcp => |opts| @tagName(opts.version),
else => @tagName(mcp.Version.default),
};
}
pub fn maxConnections(self: *const Config) u16 {
return switch (self.mode) {