changeset 27:c3e2cd7fa46f

Fixed wrong idle time for tokens.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 25 Jun 2018 13:26:48 +0200
parents 96a429c5f227
children 714787accd26 7ba0a77fd679
files auth/connection.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/auth/connection.go	Mon Jun 25 13:19:55 2018 +0200
+++ b/auth/connection.go	Mon Jun 25 13:26:48 2018 +0200
@@ -68,7 +68,7 @@
 }
 
 func (cp *ConnectionPool) cleanToken() {
-	valid := time.Now().Add(-maxDBIdle)
+	valid := time.Now().Add(-maxTokenIdle)
 	for token, con := range cp.conns {
 		if con.access.Before(valid) {
 			if con.db != nil {