comparison examples/blog/src/lib/Db.luan @ 1401:ef1620aa99cb

fix gc issues
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 16 Sep 2019 22:51:41 -0400
parents 38a1c1b4279a
children 1979cff9aad2
comparison
equal deleted inserted replaced
1400:221eedb0f54e 1401:ef1620aa99cb
36 end 36 end
37 37
38 Db.db = Db.new("site:/private/local/lucene") 38 Db.db = Db.new("site:/private/local/lucene")
39 39
40 Db.db.restore_from_postgres() 40 Db.db.restore_from_postgres()
41 Thread.schedule( Db.db.check, { delay=0, repeating_delay=Time.period{minutes=1}, daemon = true } ) 41 Thread.schedule( Db.db.check, { delay=0, repeating_delay=Time.period{minutes=1}, id="blog-db-check" } )
42 42
43 return Db 43 return Db