wip
Some checks failed
CloudSave/pipeline/head There was a failure building this commit

This commit is contained in:
2025-09-12 01:39:47 +02:00
parent 5f7ca22b8f
commit 57fc77755e
5 changed files with 142 additions and 49 deletions

View File

@@ -43,6 +43,7 @@ const (
Pushed
Pulled
UpToDate
Done
)
var (
@@ -81,7 +82,7 @@ func (s *Syncer) Sync() {
for _, g := range games {
r, err := remote.One(g.ID)
if err != nil {
s.errorCallback(fmt.Errorf("%w: %s", ErrDatastore, err), g)
continue
}
if r.URL != s.cli.BaseURL() {
continue
@@ -90,6 +91,7 @@ func (s *Syncer) Sync() {
s.errorCallback(err, g)
}
}
s.stateCallback(Done, repository.Metadata{})
}
func (s *Syncer) sync(g repository.Metadata) error {