Browse Source

chore: decrease expire time to 2 hours

Yeuoly 8 months ago
parent
commit
24de60679d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/core/plugin_manager/remote_manager/connection_key.go

+ 1 - 1
internal/core/plugin_manager/remote_manager/connection_key.go

@@ -41,7 +41,7 @@ const (
 	CONNECTION_KEY_MANAGER_KEY2ID_PREFIX = "remote:key:manager:key2id"
 	CONNECTION_KEY_MANAGER_ID2KEY_PREFIX = "remote:key:manager:id2key"
 	CONNECTION_KEY_LOCK                  = "connection_lock"
-	CONNECTION_KEY_EXPIRE_TIME           = time.Hour * 15
+	CONNECTION_KEY_EXPIRE_TIME           = time.Minute * 120 // 2 hours
 )
 
 // returns a random string, create it if not exists