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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
9b565afd
Commit
9b565afd
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Removed facts parameters from NewUdManagerFromBackup
parent
153c3859
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!510
Release
,
!396
Remove restoring backed up facts from bindings NewUdManagerFromBackup call
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/ud.go
+0
-25
0 additions, 25 deletions
bindings/ud.go
with
0 additions
and
25 deletions
bindings/ud.go
+
0
−
25
View file @
9b565afd
...
...
@@ -220,7 +220,6 @@ func NewOrLoadUd(e2eID int, follower UdNetworkStatus, username string,
// may use the UD server run by the xx network team by using
// [E2e.GetUdAddressFromNdf].
func
NewUdManagerFromBackup
(
e2eID
int
,
follower
UdNetworkStatus
,
usernameJson
,
emailFactJson
,
phoneFactJson
,
cert
,
contactFile
[]
byte
,
address
string
)
(
*
UserDiscovery
,
error
)
{
// Get user from singleton
...
...
@@ -229,30 +228,6 @@ func NewUdManagerFromBackup(e2eID int, follower UdNetworkStatus,
return
nil
,
err
}
var
email
,
phone
,
username
fact
.
Fact
// Parse email if non-nil
if
emailFactJson
!=
nil
{
err
=
json
.
Unmarshal
(
emailFactJson
,
&
email
)
if
err
!=
nil
{
return
nil
,
err
}
}
// Parse phone if non-nil
if
phoneFactJson
!=
nil
{
err
=
json
.
Unmarshal
(
phoneFactJson
,
&
phone
)
if
err
!=
nil
{
return
nil
,
err
}
}
// Parse username
err
=
json
.
Unmarshal
(
usernameJson
,
&
username
)
if
err
!=
nil
{
return
nil
,
err
}
UdNetworkStatusFn
:=
func
()
xxdk
.
Status
{
return
xxdk
.
Status
(
follower
.
UdNetworkStatus
())
}
...
...
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
register
or
sign in
to comment