delete the old logger in client (#744)
Fix #708 Link PR #738 deleted the old logger in client.
This commit is contained in:
parent
61be548803
commit
a225d4dc7d
1 changed files with 2 additions and 5 deletions
|
|
@ -26,10 +26,8 @@ import (
|
||||||
// A Client is an MCP client, which may be connected to an MCP server
|
// A Client is an MCP client, which may be connected to an MCP server
|
||||||
// using the [Client.Connect] method.
|
// using the [Client.Connect] method.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
impl *Implementation
|
impl *Implementation
|
||||||
opts ClientOptions
|
opts ClientOptions
|
||||||
// Deprecated
|
|
||||||
logger *slog.Logger // TODO: file proposal to export this
|
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
roots *featureSet[*Root]
|
roots *featureSet[*Root]
|
||||||
sessions []*ClientSession
|
sessions []*ClientSession
|
||||||
|
|
@ -61,7 +59,6 @@ func NewClient(impl *Implementation, options *ClientOptions) *Client {
|
||||||
return &Client{
|
return &Client{
|
||||||
impl: impl,
|
impl: impl,
|
||||||
opts: opts,
|
opts: opts,
|
||||||
logger: ensureLogger(nil), // ensure we have a logger
|
|
||||||
roots: newFeatureSet(func(r *Root) string { return r.URI }),
|
roots: newFeatureSet(func(r *Root) string { return r.URI }),
|
||||||
sendingMethodHandler_: defaultSendingMethodHandler,
|
sendingMethodHandler_: defaultSendingMethodHandler,
|
||||||
receivingMethodHandler_: defaultReceivingMethodHandler[*ClientSession],
|
receivingMethodHandler_: defaultReceivingMethodHandler[*ClientSession],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue