diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-04-28 20:13:34 -0700 |
---|---|---|
committer | fguillot <fred@miniflux.net> | 2019-04-28 20:21:31 -0700 |
commit | 0dff43233791ae7949ea6f9a50326bbb3f3769e5 (patch) | |
tree | 2686920fcfa1bcc5f46f3e6587212bd808e1d13b /storage/job.go | |
parent | 4295a86e55e765e3e396a03c090bd08be9e0a390 (diff) |
Remove debug timer from most storage functions
Diffstat (limited to 'storage/job.go')
-rw-r--r-- | storage/job.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/storage/job.go b/storage/job.go index 41e63fa..e115533 100644 --- a/storage/job.go +++ b/storage/job.go @@ -6,17 +6,14 @@ package storage // import "miniflux.app/storage" import ( "fmt" - "time" "miniflux.app/model" - "miniflux.app/timer" ) const maxParsingError = 3 // NewBatch returns a serie of jobs. func (s *Storage) NewBatch(batchSize int) (jobs model.JobList, err error) { - defer timer.ExecutionTime(time.Now(), fmt.Sprintf("[Storage:GetJobs] batchSize=%d", batchSize)) query := ` SELECT id, user_id @@ -29,8 +26,6 @@ func (s *Storage) NewBatch(batchSize int) (jobs model.JobList, err error) { // NewUserBatch returns a serie of jobs but only for a given user. func (s *Storage) NewUserBatch(userID int64, batchSize int) (jobs model.JobList, err error) { - defer timer.ExecutionTime(time.Now(), fmt.Sprintf("[Storage:GetUserJobs] batchSize=%d, userID=%d", batchSize, userID)) - // We do not take the error counter into consideration when the given // user refresh manually all his feeds to force a refresh. query := ` |