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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
ec73bc5b
Commit
ec73bc5b
authored
Apr 21, 2022
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
wfc
parent
aed6cbdd
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
+4
-4
4 additions, 4 deletions
connect/connect.go
with
4 additions
and
4 deletions
connect/connect.go
+
4
−
4
View file @
ec73bc5b
...
@@ -114,7 +114,7 @@ func Connect(recipient contact.Contact, myId *id.ID, rng *fastRNG.StreamGenerato
...
@@ -114,7 +114,7 @@ func Connect(recipient contact.Contact, myId *id.ID, rng *fastRNG.StreamGenerato
return
nil
,
err
return
nil
,
err
}
}
return
Connect
WithPartner
(
newPartner
,
e2eHandler
,
p
),
nil
return
Build
Connect
ion
(
newPartner
,
e2eHandler
,
p
),
nil
}
}
// WaitForConnections assembles a Connection object on the reception-side
// WaitForConnections assembles a Connection object on the reception-side
...
@@ -153,12 +153,12 @@ func WaitForConnections(myId *id.ID, rng *fastRNG.StreamGenerator,
...
@@ -153,12 +153,12 @@ func WaitForConnections(myId *id.ID, rng *fastRNG.StreamGenerator,
}
}
// Return the new Connection object
// Return the new Connection object
return
Connect
WithPartner
(
newPartner
,
e2eHandler
,
p
),
nil
return
Build
Connect
ion
(
newPartner
,
e2eHandler
,
p
),
nil
}
}
// Connect
WithPartner
assembles a Connection object
//
Build
Connect
ion
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
Connect
WithPartner
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
p
Params
)
Connection
{
func
Build
Connect
ion
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
p
Params
)
Connection
{
return
&
handler
{
return
&
handler
{
partner
:
partner
,
partner
:
partner
,
params
:
p
,
params
:
p
,
...
...
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