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 UnaryPrometheousInterceptor() grpc.UnaryServerInterceptor {
func UnaryPrometheusInterceptor() grpc.UnaryServerInterceptor {
return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (
interface{}, error) {
startTime := timex.Now()

View File

@@ -9,7 +9,7 @@ import (
)
func TestUnaryPromMetricInterceptor(t *testing.T) {
interceptor := UnaryPrometheousInterceptor()
interceptor := UnaryPrometheusInterceptor()
_, err := interceptor(context.Background(), nil, &grpc.UnaryServerInfo{
FullMethod: "/",
}, func(ctx context.Context, req interface{}) (interface{}, error) {