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

Commit

Permalink
backup: Minor fix "composite literal uses unkeyed"
Browse files Browse the repository at this point in the history
  • Loading branch information
ukinau committed Jan 16, 2019
1 parent 1cdb3aa commit ab9b78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup/backup_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (bm *BackupManager) SaveSnap(ctx context.Context, s3Path string, isPeriodic
if err != nil {
return 0, "", nil, fmt.Errorf("failed to write snapshot (%v)", err)
}
return rev, resp.Version, &metav1.Time{now}, nil
return rev, resp.Version, &metav1.Time{Time: now}, nil
}

// EnsureMaxBackup to ensure the number of snapshot is under maxcount
Expand Down

0 comments on commit ab9b78e

Please sign in to comment.