From 585cdeb57160081e54c83fbf22e1420926f5416d Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 17 Jan 2018 16:01:41 -0800 Subject: [PATCH] context, registry/handlers: remove net/context references Signed-off-by: Stephen J Day --- context/doc.go | 5 ++--- registry/handlers/context.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/context/doc.go b/context/doc.go index 9b623074e..0c631a9c9 100644 --- a/context/doc.go +++ b/context/doc.go @@ -1,7 +1,6 @@ // Package context provides several utilities for working with -// golang.org/x/net/context in http requests. Primarily, the focus is on -// logging relevant request information but this package is not limited to -// that purpose. +// Go's context in http requests. Primarily, the focus is on logging relevant +// request information but this package is not limited to that purpose. // // The easiest way to get started is to get the background context: // diff --git a/registry/handlers/context.go b/registry/handlers/context.go index a775be7f5..e5d267688 100644 --- a/registry/handlers/context.go +++ b/registry/handlers/context.go @@ -1,6 +1,7 @@ package handlers import ( + "context" "fmt" "net/http" @@ -10,7 +11,6 @@ import ( "github.com/docker/distribution/registry/api/v2" "github.com/docker/distribution/registry/auth" "github.com/opencontainers/go-digest" - "golang.org/x/net/context" ) // Context should contain the request specific context for use in across