package metrics

import telemetry "code.justin.tv/amzn/TwitchTelemetry"

// Creates a SampleUnbufferedObserver that does nothing.
func NewNoopSampleUnbufferedObserver() telemetry.SampleUnbufferedObserver {
	return &noopSampleObserver{}
}

type noopSampleObserver struct{}

// noopSampleObserver implements the telemetry.SampleUnbufferedObserver interface.
var _ telemetry.SampleUnbufferedObserver = &noopSampleObserver{}

func (n noopSampleObserver) FlushWithoutBuffering(_ []*telemetry.Distribution) {}
