Skip to content

Commit

Permalink
Expose name for external dependency round tripper in creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferlonas committed Jul 19, 2021
1 parent 13c1804 commit 188fa6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/transport/external_dependency_round_tripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ type ExternalDependencyRoundTripper struct {
transport http.RoundTripper
}

func NewExternalDependencyRoundTripper(name string) *ExternalDependencyRoundTripper {
return &ExternalDependencyRoundTripper{name: name}
}

// Transport returns the RoundTripper to make HTTP requests
func (l *ExternalDependencyRoundTripper) Transport() http.RoundTripper {
return l.transport
Expand Down

0 comments on commit 188fa6c

Please sign in to comment.