chore(deduper): add compile check that slog.Handler int is satisfied

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
This commit is contained in:
TJ Hoplock 2024-11-15 15:48:34 -05:00
parent 101b1c307f
commit 16a4354b48

View file

@ -26,6 +26,8 @@ const (
maxEntries = 1024
)
var _ slog.Handler = (*Deduper)(nil)
// Deduper implements *slog.Handler, dedupes log lines based on a time duration.
type Deduper struct {
next *slog.Logger