fix typo of prometheus

This commit is contained in:
kevin
2020-09-27 17:15:15 +08:00
parent a958400595
commit 9277ad77f7
9 changed files with 9 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ var (
})
)
func PrometheousInterceptor(ctx context.Context, method string, req, reply interface{},
func PrometheusInterceptor(ctx context.Context, method string, req, reply interface{},
cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
startTime := timex.Now()
err := invoker(ctx, method, req, reply, cc, opts...)

View File

@@ -26,7 +26,7 @@ func TestPromMetricInterceptor(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
cc := new(grpc.ClientConn)
err := PrometheousInterceptor(context.Background(), "/foo", nil, nil, cc,
err := PrometheusInterceptor(context.Background(), "/foo", nil, nil, cc,
func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn,
opts ...grpc.CallOption) error {
return test.err