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
Branches
Tags
2 merge requests!510Release,!250Hotfix/refactor connect
...@@ -117,14 +117,14 @@ func NewClient(params Params, comms *commClient.Comms, session storage.Session, ...@@ -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.Handler = message.NewHandler(c.param.Message, c.session.GetKV(),
c.events, c.session.GetReceptionID()) c.events, c.session.GetReceptionID())
err := c.connect(session.GetNDF()) err := c.initialize(session.GetNDF())
return c, err 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 health monitors. This should be called before
// network Follow command is called. // network Follow command is called.
func (c *client) connect(ndf *ndf.NetworkDefinition) error { func (c *client) initialize(ndf *ndf.NetworkDefinition) error {
// Start network instance // Start network instance
instance, err := commNetwork.NewInstance( instance, err := commNetwork.NewInstance(
c.comms.ProtoComms, ndf, nil, nil, commNetwork.None, c.comms.ProtoComms, ndf, nil, nil, commNetwork.None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment