Просмотр исходного кода

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

backfeed-full-error
Fusl 2 лет назад
Родитель
Сommit
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),


Загрузка…
Отмена
Сохранить