()
| 662 | } |
| 663 | |
| 664 | func (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 | |
| 677 | func (cs *clientStream) commitAttempt() { |
| 678 | cs.mu.Lock() |
no outgoing calls
no test coverage detected