(ctx context.Context)
| 75 | } |
| 76 | |
| 77 | func getConfig(ctx context.Context) *conf.Configuration { |
| 78 | obj := ctx.Value(configKey) |
| 79 | if obj == nil { |
| 80 | return nil |
| 81 | } |
| 82 | return obj.(*conf.Configuration) |
| 83 | } |
| 84 | |
| 85 | // withInstanceID adds the instance id to the context. |
| 86 | func withInstanceID(ctx context.Context, id uuid.UUID) context.Context { |
no test coverage detected
searching dependent graphs…