Skip to content

Commit

Permalink
fix(coderd): properly calculate query latency for tailnet queries (#1…
Browse files Browse the repository at this point in the history
…2944)

The defer used seems correct, but the `time.Since` will always resolve
immediately since it's a param to the deferred function.
  • Loading branch information
coadler committed Apr 16, 2024
1 parent ba52a4f commit 231fc26
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions coderd/database/dbmetrics/dbmetrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 231fc26

Please sign in to comment.