From 06c87af6066a7c6bb678b9153af0172133f36554 Mon Sep 17 00:00:00 2001 From: Julien Schmidt Date: Wed, 6 Dec 2017 10:51:28 +0100 Subject: [PATCH] remove unused encryptionLevel from client --- h2quic/client.go | 20 +++++++++----------- h2quic/client_test.go | 1 - 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/h2quic/client.go b/h2quic/client.go index cd7f65c7c..9d845ec0f 100644 --- a/h2quic/client.go +++ b/h2quic/client.go @@ -34,10 +34,9 @@ type client struct { config *quic.Config opts *roundTripperOpts - hostname string - encryptionLevel protocol.EncryptionLevel - handshakeErr error - dialOnce sync.Once + hostname string + handshakeErr error + dialOnce sync.Once session quic.Session headerStream quic.Stream @@ -67,13 +66,12 @@ func newClient( config = quicConfig } return &client{ - hostname: authorityAddr("https", hostname), - responses: make(map[protocol.StreamID]chan *http.Response), - encryptionLevel: protocol.EncryptionUnencrypted, - tlsConf: tlsConfig, - config: config, - opts: opts, - headerErrored: make(chan struct{}), + hostname: authorityAddr("https", hostname), + responses: make(map[protocol.StreamID]chan *http.Response), + tlsConf: tlsConfig, + config: config, + opts: opts, + headerErrored: make(chan struct{}), } } diff --git a/h2quic/client_test.go b/h2quic/client_test.go index db9883015..24737e199 100644 --- a/h2quic/client_test.go +++ b/h2quic/client_test.go @@ -151,7 +151,6 @@ var _ = Describe("Client", func() { BeforeEach(func() { var err error - client.encryptionLevel = protocol.EncryptionForwardSecure dialAddr = func(hostname string, _ *tls.Config, _ *quic.Config) (quic.Session, error) { return session, nil }