From f82660264da8afa7c0e2dc539e8b62d4f8c2d31c Mon Sep 17 00:00:00 2001 From: Jake Taylor <jake@elixxir.io> Date: Tue, 22 Feb 2022 15:43:06 -0600 Subject: [PATCH] fix bool --- network/gateway/hostPool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/gateway/hostPool.go b/network/gateway/hostPool.go index 7d842cd97..0cb7fa6c0 100644 --- a/network/gateway/hostPool.go +++ b/network/gateway/hostPool.go @@ -462,7 +462,7 @@ func (h *HostPool) checkReplace(hostId *id.ID, hostErr error) (bool, error) { } h.hostMux.Unlock() } - return doReplace && err != nil, err + return doReplace && err == nil, err } // Select a viable HostPool candidate from the NDF -- GitLab