MCPcopy Create free account
hub / github.com/cli/cli / sendError

Method sendError

internal/codespaces/connection/tunnels_api_server_mock.go:290–296  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

288}
289
290func (rs *relayServer) sendError(err error) {
291 select {
292 case rs.errc <- err:
293 default:
294 // channel is blocked with a previous error, so we ignore this one
295 }
296}
297
298func (rs *relayServer) ForwardPort(ctx context.Context, port uint16) error {
299 pfr := messages.NewPortForwardRequest("127.0.0.1", uint32(port))

Callers 1

makeConnectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected