postgreskv: actually monitor the iterate call (#2129)

Change-Id: I3a5221d6641b6c95b7b746ec3f7ac4522f464b85
This commit is contained in:
JT Olio 2019-06-05 11:22:46 -06:00 committed by GitHub
parent b5ac4f3eac
commit cc47bf2df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ func newAlternateOrderedPostgresIterator(ctx context.Context, altClient *Alterna
// Iterate iterates over items based on opts
func (altClient *AlternateClient) Iterate(ctx context.Context, opts storage.IterateOptions, fn func(context.Context, storage.Iterator) error) (err error) {
defer mon.Task()(&ctx)
defer mon.Task()(&ctx)(&err)
opi, err := newAlternateOrderedPostgresIterator(ctx, altClient, opts, defaultBatchSize)
if err != nil {
return err