data provider: update internal caches if the data provider is shared

This commit is contained in:
Nicola Murino
2021-08-20 09:35:06 +02:00
parent be3857d572
commit bcf088f586
13 changed files with 132 additions and 1 deletions

View File

@@ -670,6 +670,11 @@ func (p *BoltProvider) dumpUsers() ([]User, error) {
return users, err
}
// bolt provider cannot be shared, so we always return no recently updated users
func (p *BoltProvider) getRecentlyUpdatedUsers(after int64) ([]User, error) {
return nil, nil
}
func (p *BoltProvider) getUsers(limit int, offset int, order string) ([]User, error) {
users := make([]User, 0, limit)
var err error