WithLogging is sugar for &LoggingStrategy{Inner: inner, FilePath: path}.
(inner CompactionStrategy, path string)
| 19 | |
| 20 | // WithLogging is sugar for &LoggingStrategy{Inner: inner, FilePath: path}. |
| 21 | func WithLogging(inner CompactionStrategy, path string) *LoggingStrategy { |
| 22 | return &LoggingStrategy{Inner: inner, FilePath: path} |
| 23 | } |
| 24 | |
| 25 | func (l *LoggingStrategy) Compact(ctx context.Context, messages []api.Message) ([]api.Message, error) { |
| 26 | before := messages |
nothing calls this directly
no outgoing calls
no test coverage detected