Skip to content

Commit 3cc2d9f

Browse files
add extract cache time
1 parent e6b2497 commit 3cc2d9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cache/restorer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func (r restorer) restore(src, dst string, mockDownloadUpload bool) error {
108108
return nil
109109
}
110110

111+
start := time.Now()
111112
written, err := r.a.Extract(dst, pr)
112113
if err != nil {
113114
err = fmt.Errorf("extract files from downloaded archive, pipe reader failed, %w", err)
@@ -123,6 +124,7 @@ func (r restorer) restore(src, dst string, mockDownloadUpload bool) error {
123124
"local", dst,
124125
"remote", src,
125126
"raw size", written,
127+
"took", time.Since(start),
126128
)
127129

128130
return nil

0 commit comments

Comments
 (0)