From 8058fc7b18f8794d9fc57eee98d64fe2c750e3f1 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 29 Sep 2016 19:51:38 +0000 Subject: [PATCH] http: fix build on Go 1.6 and below https://golang.org/cl/29965 adding ClientConn.Ping support introduced a build failure on Go versions before 1.7. Fixes golang/go#17286 Change-Id: Ibfb565e7d823a436e58dc833973d7bdb41b7de5a Reviewed-on: https://go-review.googlesource.com/30071 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Joe Tsai --- http2/not_go17.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http2/not_go17.go b/http2/not_go17.go index 2e94477e..187f33ce 100644 --- a/http2/not_go17.go +++ b/http2/not_go17.go @@ -12,7 +12,10 @@ import ( "net/http" ) -type contextContext interface{} +type contextContext interface { + Done() <-chan struct{} + Err() error +} type fakeContext struct{}