From 2f7b04d43d0c18979a35776e51fc50e2ac29cd0e Mon Sep 17 00:00:00 2001 From: Jake Taylor <jake@elixxir.io> Date: Thu, 29 Apr 2021 16:51:04 -0500 Subject: [PATCH] add more errors to hostPool.go --- network/gateway/hostPool.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/network/gateway/hostPool.go b/network/gateway/hostPool.go index a4d52a872..f165ce5a9 100644 --- a/network/gateway/hostPool.go +++ b/network/gateway/hostPool.go @@ -5,9 +5,10 @@ // LICENSE file // /////////////////////////////////////////////////////////////////////////////// -// Handles functionality related to providing Gateway connect.Host objects +// Package gateway Handles functionality related to providing Gateway connect.Host objects // for message sending to the rest of the client repo // Used to minimize # of open connections on mobile clients + package gateway import ( @@ -30,7 +31,8 @@ import ( // List of errors that initiate a Host replacement var errorsList = []string{"context deadline exceeded", "connection refused", "host disconnected", - "transport is closing", "all SubConns are in TransientFailure", ndf.NO_NDF} + "transport is closing", "all SubConns are in TransientFailure", "Last try to connect", + ndf.NO_NDF, "Host is in cool down"} // HostManager Interface allowing storage and retrieval of Host objects type HostManager interface { -- GitLab