зеркало из https://github.com/golang/build.git
internal/gomote: fix panic in ListDirectoryStreaming
For golang/go#69732 Change-Id: I72ef0672cfffa7d33afd44f886c67933242801fb Reviewed-on: https://go-review.googlesource.com/c/build/+/617515 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Родитель
25b5b847e6
Коммит
25d5d8fff1
|
@ -356,7 +356,7 @@ func (ss *SwarmingServer) ListDirectoryStreaming(req *protos.ListDirectoryReques
|
|||
for i := 0; i < len(entries); i += chunkSize {
|
||||
end := min(chunkSize, len(entries[i:]))
|
||||
if err := stream.Send(&protos.ListDirectoryResponse{
|
||||
Entries: entries[i:end],
|
||||
Entries: entries[i : i+end],
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче