MCPcopy Index your code
hub / github.com/subtrace/subtrace / setError

Method setError

tracer/parser.go:534–543  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

532}
533
534func (s *sampler) setError(err error) {
535 if errors.Is(err, io.EOF) {
536 err = nil
537 }
538
539 select {
540 case s.errs <- err:
541 default:
542 }
543}
544
545func (s *sampler) Read(b []byte) (int, error) {
546 n, err := s.orig.Read(b)

Callers 2

ReadMethod · 0.95
CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected