Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
furkansenharputlu committed Feb 12, 2019
1 parent b8de3a3 commit 7fa73a3
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ func TestCipherSuites(t *testing.T) {
}

func TestHTTP2(t *testing.T) {
mockHandle.PushDomains(map[string][]string{"http2.golang.org.": {"130.211.116.44"}}, nil)

// Certificates
serverCertPem, serverPrivPem, _, _ := genServerCertificate()
Expand Down
2 changes: 1 addition & 1 deletion dnscache/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/Sirupsen/logrus"
"github.com/pmylund/go-cache"
cache "github.com/pmylund/go-cache"
)

// DnsCacheItem represents single record in cache
Expand Down
3 changes: 1 addition & 2 deletions handler_success.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import (
"strings"
"time"

"github.com/pmylund/go-cache"

"github.com/TykTechnologies/tyk/request"
cache "github.com/pmylund/go-cache"

"github.com/TykTechnologies/tyk/config"
"github.com/TykTechnologies/tyk/user"
Expand Down
4 changes: 2 additions & 2 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"testing"
"time"

"github.com/dgrijalva/jwt-go"
jwt "github.com/dgrijalva/jwt-go"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/satori/go.uuid"
uuid "github.com/satori/go.uuid"

"github.com/TykTechnologies/tyk/apidef"
"github.com/TykTechnologies/tyk/config"
Expand Down
2 changes: 1 addition & 1 deletion host_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/jeffail/tunny"
"github.com/pmylund/go-cache"
cache "github.com/pmylund/go-cache"

"github.com/TykTechnologies/tyk/config"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/TykTechnologies/tyk/checkup"

"github.com/Sirupsen/logrus"
"github.com/Sirupsen/logrus/hooks/syslog"
logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog"
logstashHook "github.com/bshuster-repo/logrus-logstash-hook"
"github.com/evalphobia/logrus_sentry"
"github.com/facebookgo/pidfile"
Expand Down
4 changes: 2 additions & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/Sirupsen/logrus"
"github.com/gocraft/health"
"github.com/justinas/alice"
"github.com/newrelic/go-agent"
newrelic "github.com/newrelic/go-agent"
"github.com/paulbellamy/ratecounter"
"github.com/pmylund/go-cache"
cache "github.com/pmylund/go-cache"

"github.com/TykTechnologies/tyk/apidef"
"github.com/TykTechnologies/tyk/config"
Expand Down
2 changes: 1 addition & 1 deletion mw_js_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/Sirupsen/logrus"
"github.com/x-cray/logrus-prefixed-formatter"
prefixed "github.com/x-cray/logrus-prefixed-formatter"

"github.com/TykTechnologies/tyk/apidef"
"github.com/TykTechnologies/tyk/config"
Expand Down
2 changes: 1 addition & 1 deletion reverse_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"time"

"github.com/Sirupsen/logrus"
"github.com/pmylund/go-cache"
cache "github.com/pmylund/go-cache"

"github.com/TykTechnologies/tyk/apidef"
"github.com/TykTechnologies/tyk/config"
Expand Down
7 changes: 4 additions & 3 deletions test/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import (
var (
muDefaultResolver sync.RWMutex
DomainsToAddresses = map[string][]string{
"host1.local.": {"127.0.0.1"},
"host2.local.": {"127.0.0.1"},
"host3.local.": {"127.0.0.1"},
"host1.local.": {"127.0.0.1"},
"host2.local.": {"127.0.0.1"},
"host3.local.": {"127.0.0.1"},
"http2.golang.org.": {"130.211.116.44"}, // HTTP/2 server
}
)

Expand Down

0 comments on commit 7fa73a3

Please sign in to comment.