From 8ae8609656959763f19c1974753f5172b7603cd0 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 27 Jun 2023 15:55:20 +0200 Subject: xmpp: Add name to return value of StartSession This explains implicitly why the value is returned. --- xmpp/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/session.go b/xmpp/session.go index 9959c80..1bd9bd5 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -20,7 +20,7 @@ type session struct { streamEnd xml.EndElement } -func StartSession(out chan any, jid string, pwd string) chan any { +func StartSession(out chan any, jid string, pwd string) (in chan any) { s := session{} s.jid = jid -- cgit v1.2.3-70-g09d2