about summary refs log tree commit diff
path: root/tools/nixery/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-10-27T12·47+0100
committerVincent Ambo <mail@tazj.in>2020-10-27T14·29+0100
commitcbbf45b5cb268a605134022d91308e6c57c9d273 (patch)
tree22df0e6fe18fdb851450bc5263fe9508d3e893f6 /tools/nixery/main.go
parent5ce745d104e82d836967e3bd9fd7af9602e76114 (diff)
refactor(storage): Rename ServeLayer -> Serve
This is going to be used for general content-addressed objects, and is
not layer specific anymore.
Diffstat (limited to 'tools/nixery/main.go')
-rw-r--r--tools/nixery/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nixery/main.go b/tools/nixery/main.go
index 92c602b1f79f..573f42767d04 100644
--- a/tools/nixery/main.go
+++ b/tools/nixery/main.go
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC
+// Copyright 2019-2020 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
 // use this file except in compliance with the License. You may obtain a copy of
@@ -159,7 +159,7 @@ func (h *registryHandler) serveManifestTag(w http.ResponseWriter, r *http.Reques
 // serveLayer serves an image layer from storage (if it exists).
 func (h *registryHandler) serveLayer(w http.ResponseWriter, r *http.Request, digest string) {
 	storage := h.state.Storage
-	err := storage.ServeLayer(digest, r, w)
+	err := storage.Serve(digest, r, w)
 	if err != nil {
 		log.WithError(err).WithFields(log.Fields{
 			"layer":   digest,