diff options
author | George Goldberg <george@gberg.me> | 2017-10-02 12:43:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 12:43:21 +0100 |
commit | 76bd1bb212177824379c485c553e54530a854009 (patch) | |
tree | f4b3c41ff3ff72c96ab58e944e4254bfca4fd8be /jobs/workers.go | |
parent | 9bc7af0c5704bbf73f8240b4569d5ea215352e39 (diff) | |
download | chat-76bd1bb212177824379c485c553e54530a854009.tar.gz chat-76bd1bb212177824379c485c553e54530a854009.tar.bz2 chat-76bd1bb212177824379c485c553e54530a854009.zip |
PLT-7705: API to get data retention policy. (#7539)
* PLT-7705: API to get data retention policy.
* Fix review comments.
Diffstat (limited to 'jobs/workers.go')
-rw-r--r-- | jobs/workers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/workers.go b/jobs/workers.go index dfa150ff6..c984a43b8 100644 --- a/jobs/workers.go +++ b/jobs/workers.go @@ -27,8 +27,8 @@ func (srv *JobServer) InitWorkers() *Workers { workers := &Workers{} workers.Watcher = srv.MakeWatcher(workers, DEFAULT_WATCHER_POLLING_INTERVAL) - if dataRetentionInterface := srv.DataRetention; dataRetentionInterface != nil { - workers.DataRetention = dataRetentionInterface.MakeWorker() + if srv.DataRetentionJob != nil { + workers.DataRetention = srv.DataRetentionJob.MakeWorker() } if elasticsearchIndexerInterface := srv.ElasticsearchIndexer; elasticsearchIndexerInterface != nil { |