metricwriter nil

This commit is contained in:
2023-11-22 23:41:49 +09:00
parent 343754ba7f
commit 64dece4f7e

View File

@ -59,6 +59,8 @@ type metric_empty struct{}
func (mw *metric_empty) Set(newval int64) {}
func (mw *metric_empty) Add(inc int64) {}
var MetricWriterNil = MetricWriter(&metric_empty{})
type metric_int64 struct {
valptr *int64
key string