mirror of https://github.com/tidwall/tile38.git
commit
a63cd20703
|
@ -35,7 +35,7 @@ func (conn *DisqueEndpointConn) Expired() bool {
|
|||
conn.mu.Lock()
|
||||
defer conn.mu.Unlock()
|
||||
if !conn.ex {
|
||||
if time.Now().Sub(conn.t) > httpExpiresAfter {
|
||||
if time.Now().Sub(conn.t) > disqueExpiresAfter {
|
||||
if conn.conn != nil {
|
||||
conn.close()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue