MCPcopy
hub / github.com/jordan-wright/email / makeOne

Method makeOne

pool.go:170–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (p *Pool) makeOne() {
171 go func() {
172 if p.inc() {
173 if c, err := p.build(); err == nil {
174 p.clients <- c
175 } else {
176 p.lastBuildErr = &timestampedErr{err, time.Now()}
177 p.dec()
178 }
179 }
180 }()
181}
182
183func startTLS(c *client, t *tls.Config) (bool, error) {
184 if ok, _ := c.Extension("STARTTLS"); !ok {

Callers 1

getMethod · 0.95

Calls 3

incMethod · 0.95
buildMethod · 0.95
decMethod · 0.95

Tested by

no test coverage detected