Skip to content

Commit

Permalink
resolve review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Apr 27, 2024
1 parent 5ec9207 commit 419dcd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions upstream/doq.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ func (p *dnsOverQUIC) getBytesPool() (pool *sync.Pool) {

// getConnection opens or returns an existing quic.Connection and indicates
// whether it opened a new connection or used an existing cached one.
func (p *dnsOverQUIC) getConnection() (c quic.Connection, cached bool, err error) {
var conn quic.Connection

func (p *dnsOverQUIC) getConnection() (conn quic.Connection, cached bool, err error) {
p.connMu.Lock()
defer p.connMu.Unlock()

Expand Down

0 comments on commit 419dcd2

Please sign in to comment.