Skip to content
Snippets Groups Projects
Commit eeec6a9c authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'hotfix/RefactorConnect' of git.xx.network:elixxir/client into hotfix/RefactorConnect

parents 723c260e 88dabade
No related branches found
No related tags found
2 merge requests!510Release,!250Hotfix/refactor connect
......@@ -117,14 +117,14 @@ func NewClient(params Params, comms *commClient.Comms, session storage.Session,
c.Handler = message.NewHandler(c.param.Message, c.session.GetKV(),
c.events, c.session.GetReceptionID())
err := c.connect(session.GetNDF())
err := c.initialize(session.GetNDF())
return c, err
}
// connect turns on network handlers, initializing a host pool and
// initialize turns on network handlers, initializing a host pool and
// network health monitors. This should be called before
// network Follow command is called.
func (c *client) connect(ndf *ndf.NetworkDefinition) error {
func (c *client) initialize(ndf *ndf.NetworkDefinition) error {
// Start network instance
instance, err := commNetwork.NewInstance(
c.comms.ProtoComms, ndf, nil, nil, commNetwork.None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment