summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/project/tree_saver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/project/tree_saver.rb')
-rw-r--r--lib/gitlab/import_export/project/tree_saver.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/import_export/project/tree_saver.rb b/lib/gitlab/import_export/project/tree_saver.rb
index aafed850afa..63c5afa9595 100644
--- a/lib/gitlab/import_export/project/tree_saver.rb
+++ b/lib/gitlab/import_export/project/tree_saver.rb
@@ -4,6 +4,8 @@ module Gitlab
module ImportExport
module Project
class TreeSaver
+ include DurationMeasuring
+
attr_reader :full_path
def initialize(project:, current_user:, shared:, params: {}, logger: Gitlab::Import::Logger)
@@ -15,9 +17,11 @@ module Gitlab
end
def save
- stream_export
+ with_duration_measuring do
+ stream_export
- true
+ true
+ end
rescue StandardError => e
@shared.error(e)
false