stopIncomingRequests marks the generator as read-only, refusing push requests
()
| 179 | |
| 180 | // stopIncomingRequests marks the generator as read-only, refusing push requests |
| 181 | func (g *Generator) stopIncomingRequests() { |
| 182 | g.readOnly.Store(true) |
| 183 | } |
| 184 | |
| 185 | func (g *Generator) PushSpans(ctx context.Context, req *tempopb.PushSpansRequest) (*tempopb.PushResponse, error) { |
| 186 | if g.readOnly.Load() { |