Update internal/proxy/app_conn.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
William Banfield
2021-10-13 12:16:01 -04:00
committed by GitHub
parent 3c4e138b89
commit e049236c68

View File

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