mirror of
https://github.com/hanzoai/oxy.git
synced 2026-09-30 23:42:31 +00:00
Merge pull request #47 from vulcand/maxim/develop
A set of cosmetic changes
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.5.4
|
||||
|
||||
script:
|
||||
- go get -t ./...
|
||||
- go test ./...
|
||||
- go vet ./...
|
||||
- go fmt ./...
|
||||
@@ -1,4 +1,4 @@
|
||||
Oxy
|
||||
Oxy [](https://travis-ci.org/vulcand/oxy)
|
||||
=====
|
||||
|
||||
Oxy is a Go library with HTTP handlers that enhance HTTP standard library:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -9,7 +9,7 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/mailgun/log"
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/vulcand/oxy/utils"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/mailgun/log"
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/mailgun/timetools"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user