about summary refs log tree commit diff
path: root/tools/nixery/server/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-10-01T22·26+0100
committerVincent Ambo <github@tazj.in>2019-10-03T12·21+0100
commit17adda03552d44b6354c3a801614559975c82144 (patch)
treef24963838b31d59c6d0ff17ab4579cc914732a2b /tools/nixery/server/main.go
parentef2623d168fc3f91020fdb574f5287b01d7534e6 (diff)
fix(server): Minor fixes to updated new builder code
Diffstat (limited to 'tools/nixery/server/main.go')
-rw-r--r--tools/nixery/server/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nixery/server/main.go b/tools/nixery/server/main.go
index ae8dd3ab2dbf..c3a0b6460a39 100644
--- a/tools/nixery/server/main.go
+++ b/tools/nixery/server/main.go
@@ -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,
 	})