aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward
diff options
context:
space:
mode:
authorGravatar yuxiaobo96 <41496192+yuxiaobo96@users.noreply.github.com> 2019-10-09 15:24:18 +0800
committerGravatar corbot[bot] <39114087+corbot[bot]@users.noreply.github.com> 2019-10-09 07:24:18 +0000
commitbf356e79fc215b5c455fcaf461622d34f64e4e47 (patch)
tree0a250c1265eaf909fb5e26a12ff2d5429c3ffe1b /plugin/forward
parent65458b2de24bd748e2983e34c779f5b04d38f20c (diff)
downloadcoredns-bf356e79fc215b5c455fcaf461622d34f64e4e47.tar.gz
coredns-bf356e79fc215b5c455fcaf461622d34f64e4e47.tar.zst
coredns-bf356e79fc215b5c455fcaf461622d34f64e4e47.zip
fix spelling mistakes (#3364)
Automatically submitted.
Diffstat (limited to 'plugin/forward')
-rw-r--r--plugin/forward/persistent.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/forward/persistent.go b/plugin/forward/persistent.go
index 7dc01326b..afa95d343 100644
--- a/plugin/forward/persistent.go
+++ b/plugin/forward/persistent.go
@@ -118,14 +118,14 @@ func (t *Transport) cleanup(all bool) {
}
}
-// It is hard to pin a value to this, the import thing is to no block forever, loosing at cached connection is not terrible.
+// It is hard to pin a value to this, the import thing is to no block forever, losing at cached connection is not terrible.
const yieldTimeout = 25 * time.Millisecond
// Yield return the connection to transport for reuse.
func (t *Transport) Yield(pc *persistConn) {
pc.used = time.Now() // update used time
- // Make ths non-blocking, because in the case of a very busy forwarder we will *block* on this yield. This
+ // Make this non-blocking, because in the case of a very busy forwarder we will *block* on this yield. This
// blocks the outer go-routine and stuff will just pile up. We timeout when the send fails to as returning
// these connection is an optimization anyway.
select {