postgreskv: actually monitor the iterate call (#2129)
Change-Id: I3a5221d6641b6c95b7b746ec3f7ac4522f464b85
This commit is contained in:
parent
b5ac4f3eac
commit
cc47bf2df7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user