More fixes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user