Skip to content
Snippets Groups Projects
Commit ddfbd65d authored by Jake Taylor's avatar Jake Taylor
Browse files

converted errors

parent 9ad74c23
No related branches found
No related tags found
1 merge request!53Release
...@@ -22,6 +22,8 @@ import ( ...@@ -22,6 +22,8 @@ import (
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/ndf" "gitlab.com/xx_network/primitives/ndf"
"golang.org/x/net/context" "golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/balancer"
"io" "io"
"math" "math"
"strings" "strings"
...@@ -31,8 +33,8 @@ import ( ...@@ -31,8 +33,8 @@ import (
// List of errors that initiate a Host replacement // List of errors that initiate a Host replacement
var errorsList = []string{context.DeadlineExceeded.Error(), "connection refused", "host disconnected", var errorsList = []string{context.DeadlineExceeded.Error(), "connection refused", "host disconnected",
"transport is closing", "all SubConns are in TransientFailure", "Last try to connect", "transport is closing", balancer.ErrTransientFailure.Error(), "Last try to connect",
ndf.NO_NDF, "Host is in cool down"} ndf.NO_NDF, "Host is in cool down", grpc.ErrClientConnClosing.Error()}
// HostManager Interface allowing storage and retrieval of Host objects // HostManager Interface allowing storage and retrieval of Host objects
type HostManager interface { type HostManager interface {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment