Merge pull request #122 from m1ome/fixed-disque-typo

[FIX] Typo fix
This commit is contained in:
Josh Baker 2017-01-11 03:58:34 -07:00 committed by GitHub
commit a63cd20703
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}