From e049236c68cd58ccc91fc0eedd83d2f59821e472 Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Wed, 13 Oct 2021 12:16:01 -0400 Subject: [PATCH] Update internal/proxy/app_conn.go Co-authored-by: M. J. Fromberger --- internal/proxy/app_conn.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/proxy/app_conn.go b/internal/proxy/app_conn.go index 3e342adab..0720d282b 100644 --- a/internal/proxy/app_conn.go +++ b/internal/proxy/app_conn.go @@ -148,9 +148,7 @@ func (app *appConnMempool) FlushSync(ctx context.Context) error { } func (app *appConnMempool) CheckTxAsync(ctx context.Context, req types.RequestCheckTx) (*abciclient.ReqRes, error) { - start := time.Now() - defer app.metrics.MethodTiming.With("method", "check_tx", - "type", "sync").Observe(time.Since(start).Seconds()) + defer addTimeSample(app.metrics.MethodTiming.With("method", "check_tx", "type", "async"))() return app.appConn.CheckTxAsync(ctx, req) }