(sz int, op func(a *csAttempt) error, cleanup func())
| 923 | } |
| 924 | |
| 925 | func (cs *clientStream) bufferForRetryLocked(sz int, op func(a *csAttempt) error, cleanup func()) { |
| 926 | // Note: we still will buffer if retry is disabled (for transparent retries). |
| 927 | if cs.committed { |
| 928 | return |
| 929 | } |
| 930 | cs.replayBufferSize += sz |
| 931 | if cs.replayBufferSize > cs.callInfo.maxRetryRPCBufferSize { |
| 932 | cs.commitAttemptLocked() |
| 933 | cleanup() |
| 934 | return |
| 935 | } |
| 936 | cs.replayBuffer = append(cs.replayBuffer, replayOp{op: op, cleanup: cleanup}) |
| 937 | } |
| 938 | |
| 939 | func (cs *clientStream) SendMsg(m any) (err error) { |
| 940 | defer func() { |
no test coverage detected