MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / WrapServerStream

Function WrapServerStream

internal/api/grpc.go:35–40  ·  view source on GitHub ↗

WrapServerStream returns a ServerStream that has the ability to overwrite context.

(stream grpc.ServerStream)

Source from the content-addressed store, hash-verified

33
34// WrapServerStream returns a ServerStream that has the ability to overwrite context.
35func WrapServerStream(stream grpc.ServerStream) *WrappedServerStream {
36 if existing, ok := stream.(*WrappedServerStream); ok {
37 return existing
38 }
39 return &WrappedServerStream{ServerStream: stream, WrappedContext: stream.Context()}
40}
41
42type GrpcServer struct {
43 *grpc.Server

Callers 1

Calls 1

ContextMethod · 0.80

Tested by

no test coverage detected