refactor(server): Pass HTTP request to storage.ServeLayer

The request object is required for some serving methods (e.g. the
filesystem one).
This commit is contained in:
Vincent Ambo 2019-10-28 18:18:17 +01:00 committed by Vincent Ambo
parent e5bb2fc887
commit 167a0b3263
4 changed files with 6 additions and 4 deletions

View file

@ -411,7 +411,7 @@ func uploadHashLayer(ctx context.Context, s *State, key string, lw layerWriter)
"layer": key,
"sha256": sha256sum,
"size": size,
}).Info("uploaded layer")
}).Info("created and persisted layer")
entry := manifest.Entry{
Digest: "sha256:" + sha256sum,