Skip to content
Snippets Groups Projects
Commit 0dfe2656 authored by Jonah Husson's avatar Jonah Husson
Browse files

Update client to use getpartialndf

parent 5a514f7a
No related branches found
No related tags found
1 merge request!53Release
...@@ -97,7 +97,7 @@ func NewManager(client *api.Client, single *single.Manager) (*Manager, error) { ...@@ -97,7 +97,7 @@ func NewManager(client *api.Client, single *single.Manager) (*Manager, error) {
// getHost returns the current UD host for the UD ID found in the NDF. If the // getHost returns the current UD host for the UD ID found in the NDF. If the
// host does not exist, then it is added and returned // host does not exist, then it is added and returned
func (m *Manager) getHost() (*connect.Host, error) { func (m *Manager) getHost() (*connect.Host, error) {
netDef := m.net.GetInstance().GetFullNdf().Get() netDef := m.net.GetInstance().GetPartialNdf().Get()
// Unmarshal UD ID from the NDF // Unmarshal UD ID from the NDF
udID, err := id.Unmarshal(netDef.UDB.ID) udID, err := id.Unmarshal(netDef.UDB.ID)
...@@ -124,7 +124,7 @@ func (m *Manager) getHost() (*connect.Host, error) { ...@@ -124,7 +124,7 @@ func (m *Manager) getHost() (*connect.Host, error) {
// getContact returns the contact for UD as retrieved from the NDF. // getContact returns the contact for UD as retrieved from the NDF.
func (m *Manager) getContact() (contact.Contact, error) { func (m *Manager) getContact() (contact.Contact, error) {
netDef := m.net.GetInstance().GetFullNdf().Get() netDef := m.net.GetInstance().GetPartialNdf().Get()
// Unmarshal UD ID from the NDF // Unmarshal UD ID from the NDF
udID, err := id.Unmarshal(netDef.UDB.ID) udID, err := id.Unmarshal(netDef.UDB.ID)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment