| Index: milo/buildsource/buildbot/datastore.go
|
| diff --git a/milo/buildsource/buildbot/datastore.go b/milo/buildsource/buildbot/datastore.go
|
| index 8e3eef06b2545d9845718fe2a983e8fcfd2d7974..55b4bc5761c582686348a547463cb1e5ccd0ed36 100644
|
| --- a/milo/buildsource/buildbot/datastore.go
|
| +++ b/milo/buildsource/buildbot/datastore.go
|
| @@ -44,13 +44,13 @@ func getBuildQueryBatcher(c context.Context) *datastore.Batcher {
|
| // along with a cursor. We pass the limit here and apply it to the query as
|
| // an optimization because then we can create a build container of that size.
|
| func runBuildsQuery(c context.Context, q *datastore.Query, limit int32) (
|
| - []*buildbotBuild, *datastore.Cursor, error) {
|
| + []*buildbotBuild, datastore.Cursor, error) {
|
|
|
| if limit != 0 {
|
| q = q.Limit(limit)
|
| }
|
| builds := make([]*buildbotBuild, 0, limit)
|
| - var nextCursor *datastore.Cursor
|
| + var nextCursor datastore.Cursor
|
| err := getBuildQueryBatcher(c).Run(
|
| c, q, func(build *buildbotBuild, getCursor datastore.CursorCB) error {
|
| builds = append(builds, build)
|
| @@ -58,7 +58,7 @@ func runBuildsQuery(c context.Context, q *datastore.Query, limit int32) (
|
| if err != nil {
|
| return err
|
| }
|
| - nextCursor = &tmpCursor
|
| + nextCursor = tmpCursor
|
| return nil
|
| })
|
| return builds, nextCursor, err
|
|
|