浏览代码

need to make a []byte of length len(b), not capacity len(b)

backfeed-full-error
Fusl 2 年前
父节点
当前提交
00def81c2a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      main.go

+ 1
- 1
main.go 查看文件

@@ -425,7 +425,7 @@ func (that *GlobalBackfeedManager) Handle(res http.ResponseWriter, req *http.Req
if len(b) == 0 {
continue
}
bcopy := make([]byte, 0, len(b))
bcopy := make([]byte, len(b))
copy(bcopy, b)
item := &BackfeedItem{
PrimaryShard: GenShardHash(bcopy),


正在加载...
取消
保存