(ctx context.Context, sink *attemptSink)
| 86 | type attemptSinkKey struct{} |
| 87 | |
| 88 | func withAttemptSink(ctx context.Context, sink *attemptSink) context.Context { |
| 89 | if sink == nil { |
| 90 | panic("chatdebug: nil attemptSink") |
| 91 | } |
| 92 | return context.WithValue(ctx, attemptSinkKey{}, sink) |
| 93 | } |
| 94 | |
| 95 | func attemptSinkFromContext(ctx context.Context) *attemptSink { |
| 96 | sink, _ := ctx.Value(attemptSinkKey{}).(*attemptSink) |
no outgoing calls