mcp/streamable: fix typos (#83)

  This PR updates the comments for
`StreamableServerTransport.streamRequests` to correct typos and improve
clarity.
This commit is contained in:
cryo 2025-07-03 00:38:25 +08:00 • committed by GitHub
commit 06ae01b141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,13 +223,13 @@ type StreamableServerTransport struct {
// TODO(rfindley): clean up once requests are handled.
requestStreams map[JSONRPCID]streamID
// outstandingRequests tracks the set of unanswered incoming RPCs for each logical
// streamRequests tracks the set of unanswered incoming RPCs for each logical
// stream.
//
// When the server has responded to each request, the stream should be
// closed.
//
// Lifecycle: outstandingRequests values persist as until the requests have been
// Lifecycle: streamRequests values persist as until the requests have been
// replied to by the server. Notably, NOT until they are sent to an HTTP
// response, as delivery is not guaranteed.
streamRequests map[streamID]map[JSONRPCID]struct{}