From 196202a3c5e181656f505116d5aa4a1d5da5fa00 Mon Sep 17 00:00:00 2001
From: josh <josh@elixxir.io>
Date: Thu, 12 Aug 2021 16:56:07 -0700
Subject: [PATCH] Move registerFollower to Login

---
 api/client.go | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/api/client.go b/api/client.go
index 2b7d1ac83..f43aa515b 100644
--- a/api/client.go
+++ b/api/client.go
@@ -186,12 +186,6 @@ func OpenClient(storageDir string, password []byte, parameters params.Network) (
 		clientErrorChannel: make(chan interfaces.ClientError, 1000),
 	}
 
-	// Add all processes to the followerServices
-	err = c.registerFollower()
-	if err != nil {
-		return nil, err
-	}
-
 	return c, nil
 }
 
@@ -252,6 +246,13 @@ func Login(storageDir string, password []byte, parameters params.Network) (*Clie
 	// initialize the auth tracker
 	c.auth = auth.NewManager(c.switchboard, c.storage, c.network)
 
+
+	// Add all processes to the followerServices
+	err = c.registerFollower()
+	if err != nil {
+		return nil, err
+	}
+
 	return c, nil
 }
 
-- 
GitLab