(ctx context.Context, blockId string)
| 25 | } |
| 26 | |
| 27 | func ContextWithConnData(ctx context.Context, blockId string) context.Context { |
| 28 | if blockId == "" { |
| 29 | return ctx |
| 30 | } |
| 31 | return context.WithValue(ctx, connContextKey, &connData{BlockId: blockId}) |
| 32 | } |
| 33 | |
| 34 | func GetConnData(ctx context.Context) *connData { |
| 35 | if ctx == nil { |
no outgoing calls
no test coverage detected