| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package backend | 5 package backend |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | |
| 9 "net/http" | 8 "net/http" |
| 10 "sort" | 9 "sort" |
| 11 | 10 |
| 12 "github.com/julienschmidt/httprouter" | 11 "github.com/julienschmidt/httprouter" |
| 13 tq "github.com/luci/gae/service/taskqueue" | 12 tq "github.com/luci/gae/service/taskqueue" |
| 14 "github.com/luci/luci-go/appengine/logdog/coordinator" | 13 "github.com/luci/luci-go/appengine/logdog/coordinator" |
| 15 "github.com/luci/luci-go/common/logdog/types" | 14 "github.com/luci/luci-go/common/logdog/types" |
| 16 "github.com/luci/luci-go/server/middleware" | 15 "github.com/luci/luci-go/server/middleware" |
| 17 "golang.org/x/net/context" | 16 "golang.org/x/net/context" |
| 18 | 17 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 42 for i, t := range expected { | 41 for i, t := range expected { |
| 43 tasks[i] = t.(string) | 42 tasks[i] = t.(string) |
| 44 } | 43 } |
| 45 | 44 |
| 46 sort.Strings(al) | 45 sort.Strings(al) |
| 47 sort.Strings(tasks) | 46 sort.Strings(tasks) |
| 48 return ShouldResemble(al, tasks) | 47 return ShouldResemble(al, tasks) |
| 49 } | 48 } |
| 50 | 49 |
| 51 func archiveTaskName(path string) string { | 50 func archiveTaskName(path string) string { |
| 52 » return fmt.Sprintf("archive-%s", coordinator.LogStreamFromPath(types.Str
eamPath(path)).HashID()) | 51 » return archiveTaskNameForHash(coordinator.LogStreamFromPath(types.Stream
Path(path)).HashID()) |
| 53 } | 52 } |
| OLD | NEW |