From 3c50f36a77f672c15a53d7f1fc43dd5cd18cace0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sun, 7 Apr 2019 23:39:38 +0200 Subject: [PATCH] removed timing --- internal/pkg/images/synchronizeLocalFiles.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/pkg/images/synchronizeLocalFiles.go b/internal/pkg/images/synchronizeLocalFiles.go index 937f67c..8d1276a 100644 --- a/internal/pkg/images/synchronizeLocalFiles.go +++ b/internal/pkg/images/synchronizeLocalFiles.go @@ -13,7 +13,6 @@ import ( "path/filepath" "runtime" "sync" - "time" ) type fileChecksumCalculator func(filePath string) (string, error) @@ -76,8 +75,6 @@ func checkFileForChangesWorker(workQueue <-chan localFileStructure.FilesystemNod continue } - startTime := time.Now() - metadata, err := imageDb.ImageMetadata(file.Path) if err == datastore.ErrorRecordNotFound { logrus.Debugf("Creating new metadata entry for %s.", file.Path) @@ -116,10 +113,6 @@ func checkFileForChangesWorker(workQueue <-chan localFileStructure.FilesystemNod if err != nil { logrus.Errorf("Error during save of metadata of %s - %s", file.Path, err) } - - stopTime := time.Now() - usedTime := stopTime.Sub(startTime) - logrus.Debugf("Processing file %s took %f s", file.Path, usedTime.Seconds()) } waitGroup.Done() }