| 34 | } |
| 35 | |
| 36 | type logBuffer struct { |
| 37 | // buffer is a simple ring buffer. |
| 38 | buffer []*types.Log |
| 39 | msg []string |
| 40 | max int |
| 41 | current int |
| 42 | } |
| 43 | |
| 44 | // NewLogBuffer creates log buffer with max line number limit. Because we only match logs |
| 45 | // in the log buffer, the max buffer line number is also the max pattern line number we |
nothing calls this directly
no outgoing calls
no test coverage detected