fix(server): Minor fixes to updated new builder code

This commit is contained in:
Vincent Ambo 2019-10-01 23:26:09 +01:00 committed by Vincent Ambo
parent ef2623d168
commit 17adda0355
2 changed files with 7 additions and 8 deletions

View file

@ -122,7 +122,7 @@ func writeError(w http.ResponseWriter, status int, code, message string) {
}
type registryHandler struct {
ctx *context.Context
ctx context.Context
state *builder.State
}
@ -201,7 +201,7 @@ func main() {
// All /v2/ requests belong to the registry handler.
http.Handle("/v2/", &registryHandler{
ctx: &ctx,
ctx: ctx,
state: &state,
})