Returns whether token-threshold compaction is fully configured.
(config: EventsCompactionConfig | None)
| 203 | |
| 204 | |
| 205 | def _has_token_threshold_config(config: EventsCompactionConfig | None) -> bool: |
| 206 | """Returns whether token-threshold compaction is fully configured.""" |
| 207 | return bool( |
| 208 | config |
| 209 | and config.token_threshold is not None |
| 210 | and config.event_retention_size is not None |
| 211 | ) |
| 212 | |
| 213 | |
| 214 | def _has_sliding_window_config(config: EventsCompactionConfig | None) -> bool: |
no outgoing calls
no test coverage detected