Merge pull request #47 from vulcand/maxim/develop

A set of cosmetic changes
This commit is contained in:
Archis
2016-08-30 07:40:57 -07:00
committed by GitHub
10 changed files with 17 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
language: go
go:
- 1.5.4
script:
- go get -t ./...
- go test ./...
- go vet ./...
- go fmt ./...
+1 -1
View File
@@ -1,4 +1,4 @@
Oxy
Oxy [![Build Status](https://travis-ci.org/vulcand/oxy.svg?branch=master)](https://travis-ci.org/vulcand/oxy)
=====
Oxy is a Go library with HTTP handlers that enhance HTTP standard library:
+1 -1
View File
@@ -31,9 +31,9 @@ import (
"sync"
"time"
"github.com/mailgun/timetools"
"github.com/vulcand/oxy/memmetrics"
"github.com/vulcand/oxy/utils"
"github.com/mailgun/timetools"
)
// CircuitBreaker is http.Handler that implements circuit breaker pattern
+1 -1
View File
@@ -9,9 +9,9 @@ import (
"testing"
"time"
"github.com/mailgun/timetools"
"github.com/vulcand/oxy/memmetrics"
"github.com/vulcand/oxy/testutils"
"github.com/mailgun/timetools"
. "gopkg.in/check.v1"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net/url"
"strings"
"github.com/mailgun/log"
log "github.com/Sirupsen/logrus"
"github.com/vulcand/oxy/utils"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/mailgun/log"
log "github.com/Sirupsen/logrus"
"github.com/mailgun/timetools"
)
+1 -1
View File
@@ -7,9 +7,9 @@ import (
"net/http/httptest"
"time"
"github.com/mailgun/timetools"
"github.com/vulcand/oxy/testutils"
"github.com/vulcand/oxy/utils"
"github.com/mailgun/timetools"
. "gopkg.in/check.v1"
)
+1 -1
View File
@@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/mailgun/timetools"
"github.com/vulcand/oxy/memmetrics"
"github.com/vulcand/oxy/utils"
"github.com/mailgun/timetools"
)
// RebalancerOption - functional option setter for rebalancer
+1 -1
View File
@@ -6,10 +6,10 @@ import (
"os"
"time"
"github.com/mailgun/timetools"
"github.com/vulcand/oxy/forward"
"github.com/vulcand/oxy/testutils"
"github.com/vulcand/oxy/utils"
"github.com/mailgun/timetools"
. "gopkg.in/check.v1"
)
-2
View File
@@ -114,8 +114,6 @@ func (r *RoundRobin) nextServer() (*server, error) {
return srv, nil
}
}
// We did full circle and found no available servers
return nil, fmt.Errorf("no available servers")
}
func (r *RoundRobin) RemoveServer(u *url.URL) error {