MCPcopy
hub / github.com/etcd-io/etcd / UnpauseAccept

Method UnpauseAccept

pkg/proxy/server.go:660–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

658}
659
660func (s *server) UnpauseAccept() {
661 s.pauseAcceptMu.Lock()
662 select {
663 case <-s.pauseAcceptc: // already unpaused
664 case <-s.donec:
665 s.pauseAcceptMu.Unlock()
666 return
667 default:
668 close(s.pauseAcceptc)
669 }
670 s.pauseAcceptMu.Unlock()
671
672 s.lg.Info(
673 "unpaused accept",
674 zap.String("from", s.From()),
675 zap.String("to", s.To()),
676 )
677}
678
679func (s *server) DelayAccept(latency, rv time.Duration) {
680 if latency <= 0 {

Callers

nothing calls this directly

Calls 6

FromMethod · 0.95
ToMethod · 0.95
InfoMethod · 0.80
LockMethod · 0.65
UnlockMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected