add expire tool

This commit is contained in:
Jeff Becker committed 2017-08-08 18:45:51 -04:00
1 parent 23ae28bc71
commit f61470468b
2 files changed
+9

No files matched your search

@@ -488,6 +488,12 @@ func (self *NNTPDaemon) syncPull(proxy_type, proxy_addr, remote_addr string) {
}
}
func (self *NNTPDaemon) ExpireAll() {
log.Println("expiring all orphans")
self.expire = createExpirationCore(self.database, self.store, self.informHooks)
self.expire.ExpireOrphans()
}
// run daemon
func (self *NNTPDaemon) Run() {