Skip to content

Commit

Permalink
fix lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
luominggang committed Jan 16, 2019
1 parent a3db7e4 commit e238e49
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func TestMain(m *testing.M) {
agent.ConfigFile = cfgFile
agent.StartMotanAgent()
}()
proxyUrl, _ := url.Parse("http://localhost:9983")
proxyClient = &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}
proxyURL, _ := url.Parse("http://localhost:9983")
proxyClient = &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)}}
time.Sleep(1 * time.Second)
for i := 0; i < 100; i++ {
resp, err := proxyClient.Get("http://test.domain/tst/test")
Expand Down
2 changes: 1 addition & 1 deletion cluster/httpCluster_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package cluster

import (
"github.com/stretchr/testify/assert"
"path/filepath"
"testing"

"github.com/stretchr/testify/assert"
"github.com/weibocom/motan-go/core"
)

Expand Down
5 changes: 3 additions & 2 deletions main/agentdemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"fmt"
"github.com/weibocom/motan-go"
motancore "github.com/weibocom/motan-go/core"
"net"
"net/http"
"net/http/httputil"

"github.com/weibocom/motan-go"
motancore "github.com/weibocom/motan-go/core"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion main/confsDemo/clientDemo.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/weibocom/motan-go"
"os"

"github.com/weibocom/motan-go"
)

func main() {
Expand Down

0 comments on commit e238e49

Please sign in to comment.