ShouldQuit returns true if the response should be returned early.
()
| 173 | |
| 174 | // ShouldQuit returns true if the response should be returned early. |
| 175 | func (c *TraceByIDCombiner) ShouldQuit() bool { |
| 176 | c.mu.Lock() |
| 177 | defer c.mu.Unlock() |
| 178 | return c.shouldQuit() |
| 179 | } |
| 180 | |
| 181 | func (c *TraceByIDCombiner) shouldQuit() bool { |
| 182 | if c.code/100 == 5 { // Bail on 5xx |
nothing calls this directly
no test coverage detected