build up cache

This commit is contained in:
David Schneiderbauer 2018-06-19 15:36:15 +02:00
parent 39f51c5c89
commit 45255602c6
No known key found for this signature in database
GPG Key ID: 576113B2803B3EAB

View File

@ -83,6 +83,7 @@ func removeStaleWatches(x *xorm.Engine) error {
if _, err := x.Get(repo); err != nil {
return err
}
repoCache[watch.RepoID] = repo
}
// Remove watches from now unaccessible repositories
@ -123,6 +124,7 @@ func removeStaleWatches(x *xorm.Engine) error {
if _, err := x.Get(repo); err != nil {
return err
}
repoCache[watch.RepoID] = repo
}
// Remove issue watches from now unaccssible repositories