Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit f0ecf00

Browse files
committed
backup: Minor fix "composite literal uses unkeyed"
1 parent 2ae04e2 commit f0ecf00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/backup/backup_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (bm *BackupManager) SaveSnap(ctx context.Context, s3Path string, isPeriodic
7979
if err != nil {
8080
return 0, "", nil, fmt.Errorf("failed to write snapshot (%v)", err)
8181
}
82-
return rev, resp.Version, &metav1.Time{now}, nil
82+
return rev, resp.Version, &metav1.Time{Time: now}, nil
8383
}
8484

8585
// EnsureMaxBackup to ensure the number of snapshot is under maxcount

0 commit comments

Comments
 (0)