瀏覽代碼

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…
取消
儲存