Index: appengine/memlock/memlock.go |
diff --git a/appengine/memlock/memlock.go b/appengine/memlock/memlock.go |
index b0f14f5c663f5b579f1f53989469ccdd6522799d..fb64bc8e711b1a60adf57a4e5071c834061137d9 100644 |
--- a/appengine/memlock/memlock.go |
+++ b/appengine/memlock/memlock.go |
@@ -157,7 +157,7 @@ func TryWithLock(ctx context.Context, key, clientID string, f func(context.Conte |
select { |
case <-subCtx.Done(): |
break checkLoop |
- case <-clock.Get(ctx).After(delay): |
+ case <-clock.Get(ctx).After(ctx, delay): |
} |
if !checkAnd(refresh) { |
log.Warningf("lost lock: %s", err) |