From 3a571f28ac660fe51428e3887b8b7da05a305b62 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 3 May 2020 03:27:13 -0400 Subject: [PATCH] use shorter batch IDs --- irc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client.go b/irc/client.go index b636678a..d3345cea 100644 --- a/irc/client.go +++ b/irc/client.go @@ -231,7 +231,7 @@ func (session *Session) HasHistoryCaps() bool { // this allows ~4 billion such batches which should be fine. func (session *Session) generateBatchID() string { id := atomic.AddUint32(&session.batchCounter, 1) - return strconv.Itoa(int(id)) + return strconv.FormatInt(int64(id), 32) } // WhoWas is the subset of client details needed to answer a WHOWAS query