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
aed6cbdd
Commit
aed6cbdd
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
wfc
parent
e5975400
No related branches found
No related tags found
4 merge requests
!510
Release
,
!207
WIP: Client Restructure
,
!206
Built the connection interface which wraps e2e and auth objects and manages a...
,
!203
Symmetric broadcast
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
connect/connect.go
+3
-11
3 additions, 11 deletions
connect/connect.go
with
3 additions
and
11 deletions
connect/connect.go
+
3
−
11
View file @
aed6cbdd
...
@@ -114,11 +114,7 @@ func Connect(recipient contact.Contact, myId *id.ID, rng *fastRNG.StreamGenerato
...
@@ -114,11 +114,7 @@ func Connect(recipient contact.Contact, myId *id.ID, rng *fastRNG.StreamGenerato
return
nil
,
err
return
nil
,
err
}
}
return
&
handler
{
return
ConnectWithPartner
(
newPartner
,
e2eHandler
,
p
),
nil
partner
:
newPartner
,
params
:
p
,
e2e
:
e2eHandler
,
},
nil
}
}
// WaitForConnections assembles a Connection object on the reception-side
// WaitForConnections assembles a Connection object on the reception-side
...
@@ -157,14 +153,10 @@ func WaitForConnections(myId *id.ID, rng *fastRNG.StreamGenerator,
...
@@ -157,14 +153,10 @@ func WaitForConnections(myId *id.ID, rng *fastRNG.StreamGenerator,
}
}
// Return the new Connection object
// Return the new Connection object
return
&
handler
{
return
ConnectWithPartner
(
newPartner
,
e2eHandler
,
p
),
nil
partner
:
newPartner
,
params
:
p
,
e2e
:
e2eHandler
,
},
nil
}
}
// ConnectWithPartner assembles a Connection object
on the reception-side
// ConnectWithPartner assembles a Connection object
// after an E2E partnership has already been confirmed with the given partner.Manager
// after an E2E partnership has already been confirmed with the given partner.Manager
func
ConnectWithPartner
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
p
Params
)
Connection
{
func
ConnectWithPartner
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
p
Params
)
Connection
{
return
&
handler
{
return
&
handler
{
...
...
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