Skip to content

Commit

Permalink
upstream: actually add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 27, 2023
1 parent baa4e60 commit 648565d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upstream/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func logFinish(addr string, n network, err error) {
logRoutine("dnsproxy: %s: response received over %s: %q", addr, n, status)
}

// isTimeout returns true if err is a timeout error.
func isTimeout(err error) (ok bool) {
if errors.Is(err, context.DeadlineExceeded) {
return true
Expand Down

0 comments on commit 648565d

Please # to comment.