fix: restic.ID imports in snapshot_policy

This commit is contained in:
Srigovind Nayak 2025-10-20 19:39:07 +05:30
parent 2abcda9c31
commit f7cd30c3bc
No known key found for this signature in database
GPG key ID: 09006810B7263D69

View file

@ -8,6 +8,7 @@ import (
"time"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic"
)
// ExpirePolicy configures which snapshots should be automatically removed.
@ -165,7 +166,7 @@ func findLatestTimestamp(list Snapshots) time.Time {
return latest
}
func findParentSnapshot(list Snapshots, id ID) *Snapshot {
func findParentSnapshot(list Snapshots, id restic.ID) *Snapshot {
for _, sn := range list {
if sn.ID().Equal(id) {
return sn