From fbf5e2e677b7c1f89114a29acdd834536316ab73 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 3 Nov 2019 18:33:41 +0300 Subject: - the ability to set custom command producer for roadrunner - minor improvements in metrics service - List() function for Container to receive names of all available services --- service/metrics/rpc_test.go | 5 ++++- service/metrics/service.go | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'service/metrics') diff --git a/service/metrics/rpc_test.go b/service/metrics/rpc_test.go index 6d061f1d..136f031c 100644 --- a/service/metrics/rpc_test.go +++ b/service/metrics/rpc_test.go @@ -43,10 +43,13 @@ func setup(t *testing.T, metric string, portNum string) (*rpc2.Client, service.C assert.True(t, s.(*Service).Enabled()) go func() { c.Serve() }() - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Millisecond * 200) client, err := rs.Client() assert.NoError(t, err) + if err != nil { + panic(err) + } return client, c } diff --git a/service/metrics/service.go b/service/metrics/service.go index 4916b3e0..b581f041 100644 --- a/service/metrics/service.go +++ b/service/metrics/service.go @@ -1,5 +1,7 @@ package metrics +// todo: declare metric at runtime + import ( "context" "github.com/prometheus/client_golang/prometheus" -- cgit v1.2.3