MCPcopy
hub / github.com/grpc/grpc-go / Drain

Method Drain

internal/transport/handler_server.go:482–484  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

480func (ht *serverHandlerTransport) incrMsgRecv() {}
481
482func (ht *serverHandlerTransport) Drain(s string) {
483 ht.Close(errors.New(s))
484}
485
486// mapRecvMsgError returns the non-nil err into the appropriate
487// error value as expected by callers of *grpc.parser.recvMsg.

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected