aboutsummaryrefslogtreecommitdiff
path: root/objectstore/chain/refresh.go
blob: 66c6f0a00f5425c53a3f608cf72d54f0575c73c1 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package chain

import "errors"

// Refresh forwards refresh calls to all backends.
func (chain *Chain) Refresh() error {
	var errs []error

	for _, backend := range chain.backends {
		if backend == nil {
			continue
		}

		err := backend.Refresh()
		if err != nil {
			errs = append(errs, err)
		}
	}

	return errors.Join(errs...)
}