1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel sequences db.tuples alarms calendar db fry
10 furnace.auth.login.permits ;
13 : state-classes { session aside conversation permit } ; inline
15 : init-furnace-tables ( -- )
16 state-classes ensure-tables
19 : <alloy> ( responder db -- responder' )
20 [ [ init-furnace-tables ] with-db ] keep
28 : start-expiring ( db -- )
30 _ [ state-classes [ expire-state ] each ] with-db
31 ] 5 minutes every drop ;