Skip to content

Commit

Permalink
fix: remove unexpected use of io.discard (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari authored May 30, 2023
1 parent e4a8852 commit 4bec80d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion speedtest/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func NewDebug() *Debug {
}

func (d *Debug) Enable() {
log.SetOutput(os.Stdout)
d.flag = true
}

Expand Down
5 changes: 1 addition & 4 deletions speedtest/speedtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package speedtest

import (
"fmt"
"io"
"log"
"net"
"net/http"
"net/url"
Expand All @@ -14,7 +12,7 @@ import (
)

var (
version = "1.6.0"
version = "1.6.1"
DefaultUserAgent = fmt.Sprintf("showwin/speedtest-go %s", version)
)

Expand Down Expand Up @@ -171,7 +169,6 @@ func WithUserConfig(userConfig *UserConfig) Option {

// New creates a new speedtest client.
func New(opts ...Option) *Speedtest {
log.SetOutput(io.Discard)
s := &Speedtest{
doer: http.DefaultClient,
asyncFetchUser: &sync.WaitGroup{},
Expand Down

0 comments on commit 4bec80d

Please sign in to comment.