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
206b385f
Commit
206b385f
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
remove redundant net object
parent
3c35b9d6
Branches
Branches containing commit
Tags
Tags containing commit
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
+1
-6
1 addition, 6 deletions
connect/connect.go
with
1 addition
and
6 deletions
connect/connect.go
+
1
−
6
View file @
206b385f
...
...
@@ -54,7 +54,6 @@ type Connection interface {
// handler provides an implementation for the Connection interface
type
handler
struct
{
partner
partner
.
Manager
net
cmix
.
Client
e2e
clientE2e
.
Handler
params
Params
}
...
...
@@ -118,7 +117,6 @@ func Connect(recipient contact.Contact, myId *id.ID, rng *fastRNG.StreamGenerato
return
&
handler
{
partner
:
newPartner
,
params
:
p
,
net
:
net
,
e2e
:
e2eHandler
,
},
nil
}
...
...
@@ -170,7 +168,6 @@ func WaitForConnections(connectionListener chan Connection,
case
connectionListener
<-
&
handler
{
partner
:
newPartner
,
params
:
p
,
net
:
net
,
e2e
:
e2eHandler
,
}
:
default
:
...
...
@@ -182,12 +179,10 @@ func WaitForConnections(connectionListener chan Connection,
// ConnectWithPartner assembles a Connection object on the reception-side
// after an E2E partnership has already been confirmed with the given partner.Manager
func
ConnectWithPartner
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
net
cmix
.
Client
,
p
Params
)
Connection
{
func
ConnectWithPartner
(
partner
partner
.
Manager
,
e2eHandler
clientE2e
.
Handler
,
p
Params
)
Connection
{
return
&
handler
{
partner
:
partner
,
params
:
p
,
net
:
net
,
e2e
:
e2eHandler
,
}
}
...
...
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