meter/handler: regen
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
040fc4548f
commit
ed61cad961
@ -25,8 +25,9 @@ func RegisterMeterServer(s server.Server, sh MeterServer, opts ...server.Handler
|
|||||||
meter
|
meter
|
||||||
}
|
}
|
||||||
h := &meterServer{sh}
|
h := &meterServer{sh}
|
||||||
|
var nopts []server.HandlerOption
|
||||||
for _, endpoint := range NewMeterEndpoints() {
|
for _, endpoint := range NewMeterEndpoints() {
|
||||||
opts = append(opts, api.WithEndpoint(endpoint))
|
nopts = append(nopts, api.WithEndpoint(endpoint))
|
||||||
}
|
}
|
||||||
return s.Handle(s.NewHandler(&Meter{h}, opts...))
|
return s.Handle(s.NewHandler(&Meter{h}, append(nopts, opts...)...))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user