Browse Source

Add comment on how long cache lasts

David Baker 6 years ago
parent
commit
80e598088b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      sydent/hs_federation/verifier.py

+ 2 - 0
sydent/hs_federation/verifier.py

@@ -39,6 +39,8 @@ verifying that the signature on the json blob matches.
 class Verifier(object):
     def __init__(self, sydent):
         self.sydent = sydent
+        # Cache of server keys. These are cached until the 'valid_until_ts' time
+        # in the result.
         self.cache = {
             # server_name: <result from keys query>,
         }