Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
Signed-off-by: wangxiaoxuan273 <wangxiaoxuan119@gmail.com>
  • Loading branch information
wangxiaoxuan273 committed Mar 9, 2023
1 parent b88ca65 commit 2bd1ad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/trace/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ type Transport struct {
count uint64
}

// NewTransport creates and returns a new instance of Transport
func NewTransport(base http.RoundTripper) *Transport {
return &Transport{base, 0}
return &Transport{
RoundTripper: base,
}
}

// RoundTrip calls base roundtrip while keeping track of the current request.
Expand Down

0 comments on commit 2bd1ad5

Please sign in to comment.