From 884bfec6a6be3c5c22d3328a766f43981b836bf0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 21 Mar 2022 15:08:12 +0100 Subject: [PATCH] downstream: improve grouping of downstreamConn fields --- downstream.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/downstream.go b/downstream.go index b26141c..5ad9526 100644 --- a/downstream.go +++ b/downstream.go @@ -300,23 +300,24 @@ type downstreamConn struct { id uint64 + // These don't change after connection registration registered bool user *user - nick string - nickCM string - clientName string - realname string - hostname string - account string // RPL_LOGGEDIN/OUT state network *network // can be nil isMultiUpstream bool + clientName string - registration *downstreamRegistration // nil after RPL_WELCOME + nick string + nickCM string + realname string + hostname string + account string // RPL_LOGGEDIN/OUT state negotiatingCaps bool capVersion int caps capRegistry sasl *downstreamSASL + registration *downstreamRegistration // nil after RPL_WELCOME lastBatchRef uint64