mirror of
https://github.com/restic/restic.git
synced 2026-06-09 00:42:42 -04:00
fix: restic.ID imports in snapshot_policy
This commit is contained in:
parent
2abcda9c31
commit
f7cd30c3bc
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue