diff options
author | Valery Piashchynski <[email protected]> | 2020-11-14 17:18:28 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-14 17:18:28 +0300 |
commit | e45155e77e99e85e4ee9cd8863365bf6d599796e (patch) | |
tree | fe22608b4206fcab3219b824b5bd8cfaf5cfb85f /plugins/metrics/plugin.go | |
parent | e83f7d824e5f491fb50b4a9024ef7862aee9b6ca (diff) |
More tests for the Metrics
Diffstat (limited to 'plugins/metrics/plugin.go')
-rw-r--r-- | plugins/metrics/plugin.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/metrics/plugin.go b/plugins/metrics/plugin.go index ff075bc6..8ffd19d5 100644 --- a/plugins/metrics/plugin.go +++ b/plugins/metrics/plugin.go @@ -1,7 +1,5 @@ package metrics -// todo: declare metric at runtime - import ( "context" "crypto/tls" @@ -222,5 +220,8 @@ func (m *Plugin) Name() string { // RPC interface satisfaction func (m *Plugin) RPC() interface{} { - return &rpcServer{svc: m} + return &rpcServer{ + svc: m, + log: m.log, + } } |