3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

Make batch IDs smaller

This commit is contained in:
Daniel Oaks 2018-01-28 00:45:16 +10:00
parent 07fc902b21
commit 00099eb4ba

View File

@ -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.