diff 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
line wrap: on
line diff
--- a/examples/blog/src/lib/Db.luan	Fri Sep 13 05:05:51 2019 -0600
+++ b/examples/blog/src/lib/Db.luan	Mon Sep 16 22:51:41 2019 -0400
@@ -38,6 +38,6 @@
 Db.db = Db.new("site:/private/local/lucene")
 
 Db.db.restore_from_postgres()
-Thread.schedule( Db.db.check, { delay=0, repeating_delay=Time.period{minutes=1}, daemon = true } )
+Thread.schedule( Db.db.check, { delay=0, repeating_delay=Time.period{minutes=1}, id="blog-db-check" } )
 
 return Db