Skip to content

Commit

Permalink
Revert "Create new pinger from default one"
Browse files Browse the repository at this point in the history
This reverts commit 0bf1ce5.
  • Loading branch information
dreamscached committed Jul 23, 2022
1 parent 0bf1ce5 commit 5bbb032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Pinger struct {

// NewPinger constructs new Pinger instance optionally with additional options.
func NewPinger(options ...PingerOption) Pinger {
pinger := defaultPinger
var pinger Pinger
for _, configure := range options {
configure(&pinger)
}
Expand Down

0 comments on commit 5bbb032

Please sign in to comment.