Преглед на файлове

acme/autocert: support earlier versions of Go

The package was incorrectly importing both, x/net/context
and the new context packages.

This change makes autocert use only x/net/context to provide
compatibility with the older versions of Go.

Change-Id: I520efcaab9cbe919159e4671cee62335a6e107d9
Reviewed-on: https://go-review.googlesource.com/28299
Reviewed-by: Alex Vaghin <ddos@google.com>
Alex Vaghin преди 9 години
родител
ревизия
f160b6bf95
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      acme/autocert/renewal.go

+ 2 - 1
acme/autocert/renewal.go

@@ -5,9 +5,10 @@
 package autocert
 package autocert
 
 
 import (
 import (
-	"context"
 	"crypto"
 	"crypto"
 	"time"
 	"time"
+
+	"golang.org/x/net/context"
 )
 )
 
 
 // maxRandRenew is a maximum deviation from Manager.RenewBefore.
 // maxRandRenew is a maximum deviation from Manager.RenewBefore.