mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
use shorter batch IDs
This commit is contained in:
parent
11e1939c9b
commit
3a571f28ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue