comparison src/memory/memory.py @ 1684:373ce871b0f3

core (disco): disco hashes are now stored in database to avoid doing the same disco request on next load
author Goffi <goffi@goffi.org>
date Wed, 25 Nov 2015 21:41:15 +0100
parents 61391d863709
children a40124e03baf
comparison
equal deleted inserted replaced
1683:9bf1262297f2 1684:373ce871b0f3
244 log.info(_("Loading default params template")) 244 log.info(_("Loading default params template"))
245 self.params.load_default_params() 245 self.params.load_default_params()
246 d = self.storage.initialized.addCallback(lambda ignore: self.load()) 246 d = self.storage.initialized.addCallback(lambda ignore: self.load())
247 self.memory_data = PersistentDict("memory") 247 self.memory_data = PersistentDict("memory")
248 d.addCallback(lambda ignore: self.memory_data.load()) 248 d.addCallback(lambda ignore: self.memory_data.load())
249 d.addCallback(lambda ignore: self.disco.load())
249 d.chainDeferred(self.initialized) 250 d.chainDeferred(self.initialized)
250 251
251 ## Configuration ## 252 ## Configuration ##
252 253
253 def parseMainConf(self): 254 def parseMainConf(self):