Skip to content

Commit

Permalink
Merge pull request #53 from ksysoev/measurer_middleware
Browse files Browse the repository at this point in the history
Adds measurer middleware
  • Loading branch information
ksysoev authored May 25, 2024
2 parents 9328735 + 4284723 commit 5f59121
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions middleware/request/measure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import (

func TestNewMeasurer(t *testing.T) {
// Define a mock saveMetric function
var savedMetric wasabi.Request
var savedError error
var savedDuration time.Duration
var (
savedMetric wasabi.Request
savedError error
savedDuration time.Duration
)

saveMetric := func(req wasabi.Request, err error, duration time.Duration) {
savedMetric = req
savedError = err
Expand Down

0 comments on commit 5f59121

Please sign in to comment.