(self, buffer: Buffer)
| 673 | ) |
| 674 | |
| 675 | async def _trim_buffer(self, buffer: Buffer): |
| 676 | lines_to_be_removed = max( |
| 677 | buffer.document.line_count - self._MAX_LINE_COUNT - 1, 0 |
| 678 | ) |
| 679 | return buffer.text.split("\n", lines_to_be_removed)[-1] |
| 680 | |
| 681 | async def _trim_buffers(self): |
| 682 | while True: |
no outgoing calls