Преглед на файлове

Make batch IDs smaller

tags/v0.11.0-beta
Daniel Oaks преди 6 години
родител
ревизия
00099eb4ba
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      irc/batch.go

+ 1
- 1
irc/batch.go Целия файл

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

Loading…
Отказ
Запис