meter/wrapper: use meter.DefaultMeter in NewOptions

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-03-05 17:40:03 +03:00
parent 1f0482fbd5
commit cb70dfa664

View File

@ -38,7 +38,10 @@ type Options struct {
type Option func(*Options) type Option func(*Options)
func NewOptions(opts ...Option) Options { func NewOptions(opts ...Option) Options {
options := Options{lopts: make([]meter.Option, 0, 5)} options := Options{
Meter: meter.DefaultMeter,
lopts: make([]meter.Option, 0, 5),
}
for _, o := range opts { for _, o := range opts {
o(&options) o(&options)
} }