From 00099eb4ba383c88b58f190fdc8daf1af9769776 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 28 Jan 2018 00:45:16 +1000 Subject: [PATCH] Make batch IDs smaller --- irc/batch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/batch.go b/irc/batch.go index f5bfd852..0a602b22 100644 --- a/irc/batch.go +++ b/irc/batch.go @@ -38,7 +38,7 @@ func (bm *BatchManager) NewID() string { bm.idCounter = 0 } - return strconv.FormatInt(time.Now().UnixNano(), 10) + strconv.FormatUint(bm.idCounter, 10) + return strconv.FormatInt(time.Now().UnixNano(), 36) + strconv.FormatUint(bm.idCounter, 36) } // Batch represents an IRCv3 batch.