satellite/audit: monitor worker function

Change-Id: I94d1161deffe4ea9782abee1afbb5735f18aab44
This commit is contained in:
Jeff Wendling 2019-11-22 16:40:00 -07:00
parent 01895d8bdd
commit 17b057b33e

View File

@ -101,7 +101,9 @@ func (worker *Worker) process(ctx context.Context) (err error) {
}
}
func (worker *Worker) work(ctx context.Context, path storj.Path) error {
func (worker *Worker) work(ctx context.Context, path storj.Path) (err error) {
defer mon.Task()(&ctx)(&err)
var errlist errs.Group
// First, attempt to reverify nodes for this segment that are in containment mode.