We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5574af4 commit 13bf620Copy full SHA for 13bf620
sonic/driver.go
@@ -103,7 +103,7 @@ func (c *driver) Ping() error {
103
104
// softPing pings the connection if it wasn't pinged for a while.
105
func (c *driver) softPing(threshold time.Duration) (ok bool) {
106
- if threshold <= 0 || time.Since(c.lastPing) > threshold {
+ if threshold <= 0 || time.Since(c.lastPing) < threshold {
107
return true
108
}
109
0 commit comments