From a9648cbdd1e7ea749796e9caa413a67da5894c01 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Fri, 9 Feb 2024 12:48:11 +0200 Subject: [PATCH] wtclient: load all active towers into memory Load an active tower into memory regardless of whether or not it has any sessions. --- watchtower/wtclient/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchtower/wtclient/client.go b/watchtower/wtclient/client.go index e8fec5d4a..167a98268 100644 --- a/watchtower/wtclient/client.go +++ b/watchtower/wtclient/client.go @@ -324,9 +324,9 @@ func getTowerAndSessionCandidates(db DB, keyRing ECDHKeyRing, // Add the session to the set of candidate sessions. candidateSessions[s.ID] = cs - - perActiveTower(tower) } + + perActiveTower(tower) } return candidateSessions, nil