Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: perf/go/filetilestore/filestore.go

Issue 777413002: Add new tests to presubmit, fix errors (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « perf/go/alerting/alerting.go ('k') | perf/go/ingest/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/go/filetilestore/filestore.go
diff --git a/perf/go/filetilestore/filestore.go b/perf/go/filetilestore/filestore.go
index 2dde5132e8de4790568ecd2f9b781b8a7fac0e87..5ae5a94176e1ce5bc86dc56ce2c07f42c84aa3a3 100644
--- a/perf/go/filetilestore/filestore.go
+++ b/perf/go/filetilestore/filestore.go
@@ -59,7 +59,7 @@ type FileTileStore struct {
// tileFilename creates the filename for the given tile scale and index for the
// given FileTileStore.
-func (store FileTileStore) tileFilename(scale, index int) (string, error) {
+func (store *FileTileStore) tileFilename(scale, index int) (string, error) {
if scale < 0 || index < 0 {
return "", fmt.Errorf("Scale %d and Index %d must both be >= 0", scale, index)
}
@@ -69,7 +69,7 @@ func (store FileTileStore) tileFilename(scale, index int) (string, error) {
// fileTileTemp creates a unique temporary filename for the given tile scale and
// index for the given FileTileStore. Used during Put() so that writes update
// atomically.
-func (store FileTileStore) fileTileTemp(scale, index int) (*os.File, error) {
+func (store *FileTileStore) fileTileTemp(scale, index int) (*os.File, error) {
if scale < 0 || index < 0 {
return nil, fmt.Errorf("Scale %d and Index %d must both be >= 0", scale, index)
}
« no previous file with comments | « perf/go/alerting/alerting.go ('k') | perf/go/ingest/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698