From 514325bb7cb4aa54546f370bb4acaaa02e0d6dfe Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Tue, 7 Jun 2022 09:25:03 -0700
Subject: [PATCH] changes connection tags and fixed infiante recursion in the
 bindings

---
 bindings/connect.go | 4 ++--
 connect/connect.go  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bindings/connect.go b/bindings/connect.go
index b7d1bcb18..9910af952 100644
--- a/bindings/connect.go
+++ b/bindings/connect.go
@@ -85,8 +85,8 @@ func (c *Connection) SendE2E(mt int, payload []byte) ([]byte, error) {
 }
 
 // Close deletes this Connection's partner.Manager and releases resources
-func (c *Connection) Close() {
-	c.Close()
+func (c *Connection) Close() error {
+	return c.connection.Close()
 }
 
 // GetPartner returns the partner.Manager for this Connection
diff --git a/connect/connect.go b/connect/connect.go
index ebb98f52a..aef59baad 100644
--- a/connect/connect.go
+++ b/connect/connect.go
@@ -94,8 +94,8 @@ type Params struct {
 // GetDefaultParams returns a usable set of default Connection parameters.
 func GetDefaultParams() Params {
 	return Params{
-		Auth:    auth.GetDefaultParams(),
-		Rekey:   rekey.GetDefaultParams(),
+		Auth:    auth.GetDefaultTemporaryParams(),
+		Rekey:   rekey.GetDefaultEphemeralParams(),
 		Event:   event.NewEventManager(),
 		Timeout: connectionTimeout,
 	}
-- 
GitLab