From 206b385f524c07f2659cd624f6ed7be0b2bff5cd Mon Sep 17 00:00:00 2001 From: Jake Taylor <jake@elixxir.io> Date: Thu, 21 Apr 2022 15:20:01 -0500 Subject: [PATCH] remove redundant net object --- connect/connect.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/connect/connect.go b/connect/connect.go index b46633db1..52f20a66a 100644 --- a/connect/connect.go +++ b/connect/connect.go @@ -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, } } -- GitLab