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) }