diff options
author | 2019-10-09 15:24:18 +0800 | |
---|---|---|
committer | 2019-10-09 07:24:18 +0000 | |
commit | bf356e79fc215b5c455fcaf461622d34f64e4e47 (patch) | |
tree | 0a250c1265eaf909fb5e26a12ff2d5429c3ffe1b /plugin/forward | |
parent | 65458b2de24bd748e2983e34c779f5b04d38f20c (diff) | |
download | coredns-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.go | 4 |
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 { |