Ver código fonte

Make batch IDs smaller

tags/v0.11.0-beta
Daniel Oaks 6 anos atrás
pai
commit
00099eb4ba
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      irc/batch.go

+ 1
- 1
irc/batch.go Ver arquivo

@@ -38,7 +38,7 @@ func (bm *BatchManager) NewID() string {
38 38
 		bm.idCounter = 0
39 39
 	}
40 40
 
41
-	return strconv.FormatInt(time.Now().UnixNano(), 10) + strconv.FormatUint(bm.idCounter, 10)
41
+	return strconv.FormatInt(time.Now().UnixNano(), 36) + strconv.FormatUint(bm.idCounter, 36)
42 42
 }
43 43
 
44 44
 // Batch represents an IRCv3 batch.

Carregando…
Cancelar
Salvar