Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
0dfe2656
Commit
0dfe2656
authored
Oct 15, 2021
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
Update client to use getpartialndf
parent
5a514f7a
No related branches found
No related tags found
1 merge request
!53
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ud/manager.go
+2
-2
2 additions, 2 deletions
ud/manager.go
with
2 additions
and
2 deletions
ud/manager.go
+
2
−
2
View file @
0dfe2656
...
@@ -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
()
.
Get
Ful
lNdf
()
.
Get
()
netDef
:=
m
.
net
.
GetInstance
()
.
Get
Partia
lNdf
()
.
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
()
.
Get
Ful
lNdf
()
.
Get
()
netDef
:=
m
.
net
.
GetInstance
()
.
Get
Partia
lNdf
()
.
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment