Creates a child context that has no Deadline() metadata. The child will still get cancelled if the parent's context deadline expires, or if the parent gets cancelled. This is a workaround for Courier's deadline propagation. The Courier client implementation will look at the Deadline() on the contex
(parent context.Context)
| 95 | // has an Err() set, and, if so, you can safely write the other error from the outbound RPC off as |
| 96 | // irrelevant. |
| 97 | func StripDeadline(parent context.Context) context.Context { |
| 98 | return &deadlineStrippedCtx{parent} |
| 99 | } |
| 100 | |
| 101 | type deadlineStrippedCtx struct { |
| 102 | wrapped context.Context |
no outgoing calls