Addressing feedback
This commit is contained in:
parent
2942d456cc
commit
4d79263a87
1 changed files with 1 additions and 47 deletions
|
|
@ -2,19 +2,6 @@
|
|||
|
||||
module MCP
|
||||
class Transport
|
||||
class << self
|
||||
def register(name, transport_class)
|
||||
@transports ||= {}
|
||||
@transports[name] = transport_class
|
||||
end
|
||||
|
||||
def get(name)
|
||||
raise "Transport #{name} not found" unless @transports
|
||||
|
||||
@transports.fetch(name) { raise "Transport #{name} not found" }
|
||||
end
|
||||
end
|
||||
|
||||
# Initialize the transport with the server instance
|
||||
def initialize(server)
|
||||
@server = server
|
||||
|
|
|
|||
Loading…
Reference in a new issue