mcp: remove ServerConnection
Remove ServerConnection. - It's not in typescript or mcpgo APIs. - Amortizing a client over multiple servers doesn't have any value. Change-Id: I725b42569733d6836864d96b16898a10ae91e570 Reviewed-on: https://go-review.googlesource.com/c/tools/+/669575 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
40185dd013
commit
7a76f3502a
1 changed files with 83 additions and 134 deletions
|
|
@ -77,7 +77,6 @@ func NewLocalTransport() (*IOTransport, *IOTransport) {
|
|||
// [ServerConnection] and [ClientConnection].
|
||||
type handler interface {
|
||||
handle(ctx context.Context, req *jsonrpc2.Request) (result any, err error)
|
||||
comparable
|
||||
}
|
||||
|
||||
type binder[T handler] interface {
|
||||
|
|
@ -122,7 +121,6 @@ func connect[H handler](ctx context.Context, t Transport, opts *ConnectionOption
|
|||
},
|
||||
})
|
||||
assert(preempter.conn != nil, "unbound preempter")
|
||||
assert(h != zero, "unbound connection")
|
||||
return h, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue