MCPcopy
hub / github.com/grpc/grpc-go / commitAttemptLocked

Method commitAttemptLocked

stream.go:664–675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

662}
663
664func (cs *clientStream) commitAttemptLocked() {
665 if !cs.committed && cs.onCommit != nil {
666 cs.onCommit()
667 }
668 cs.committed = true
669 for _, op := range cs.replayBuffer {
670 if op.cleanup != nil {
671 op.cleanup()
672 }
673 }
674 cs.replayBuffer = nil
675}
676
677func (cs *clientStream) commitAttempt() {
678 cs.mu.Lock()

Callers 4

commitAttemptMethod · 0.95
retryLockedMethod · 0.95
bufferForRetryLockedMethod · 0.95
finishMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected