From 92b3da4282096bb520d0830ac69c6272b835eba8 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Sun, 19 Jan 2025 19:18:35 -0500 Subject: [PATCH] Connections do not accept transactions using a context Having there be a mandatory context will just create more waste and slow stuff down for transports which don't support it. --- connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.go b/connection.go index 97f3a55..42dd19b 100644 --- a/connection.go +++ b/connection.go @@ -1,19 +1,19 @@ package hopp import "io" -import "context" // Conn is a HOPP connection. type Conn interface { io.Closer OpenTrans() (Trans, error) - AcceptTrans(ctx context.Context) (Trans, error) + AcceptTrans() (Trans, error) } // Trans is a HOPP transaction. type Trans interface { io.Closer ID() int64 + // Send sends a message. Send(method uint16, data []byte) error // Receive receives a message.