diff options
author | Valery Piashchynski <[email protected]> | 2020-02-10 22:02:34 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-10 22:02:34 +0300 |
commit | 4860f46e00f703d8246c5ec7e4872f484cbadcec (patch) | |
tree | b9c1251d7897c584314ef752d760cff2452c78fd /service/metrics/rpc.go | |
parent | f78cc049eec4e264a28edcb1bb95589d4e561cb2 (diff) |
Resolve CR comments
Diffstat (limited to 'service/metrics/rpc.go')
-rw-r--r-- | service/metrics/rpc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/metrics/rpc.go b/service/metrics/rpc.go index 9a36f14c..377d6173 100644 --- a/service/metrics/rpc.go +++ b/service/metrics/rpc.go @@ -134,13 +134,13 @@ func (rpc *rpcServer) Observe(m *Metric, ok *bool) (err error) { *ok = true return nil } -// Register is used to register new collector in prometheus +// Declare is used to register new collector in prometheus // THE TYPES ARE: // NamedCollector -> Collector with the name // bool -> RPC reply value // RETURNS: // error -func (rpc *rpcServer) Register(c *NamedCollector, ok *bool) (err error) { +func (rpc *rpcServer) Declare(c *NamedCollector, ok *bool) (err error) { // MustRegister could panic, so, to return error and not shutdown whole app // we recover and return error defer func() { |