More fixes

This commit is contained in:
James Mills
2021-01-30 15:26:24 +10:00
parent 401f635b3b
commit 8495ba0319
8 changed files with 15 additions and 304 deletions

View File

@@ -28,18 +28,15 @@ func init() {
StartupJobs = map[string]JobSpec{}
}
type JobFactory func(conf *Config, blogs *BlogsCache, cache *Cache, archive Archiver, store Store) cron.Job
type JobFactory func(conf *Config, store Store) cron.Job
type SyncStoreJob struct {
conf *Config
blogs *BlogsCache
cache *Cache
archive Archiver
db Store
conf *Config
db Store
}
func NewSyncStoreJob(conf *Config, blogs *BlogsCache, cache *Cache, archive Archiver, db Store) cron.Job {
return &SyncStoreJob{conf: conf, blogs: blogs, cache: cache, archive: archive, db: db}
func NewSyncStoreJob(conf *Config, db Store) cron.Job {
return &SyncStoreJob{conf: conf, db: db}
}
func (job *SyncStoreJob) Run() {