projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20559: Test concurrent writes using same token.
[arvados.git]
/
services
/
ws
/
permission.go
diff --git
a/services/ws/permission.go
b/services/ws/permission.go
index ac895f80e5fd7ae7933558fbfa6e6acb97a6c7b0..78158b12a1921748d46bfe579ded1d3ed1c5982e 100644
(file)
--- a/
services/ws/permission.go
+++ b/
services/ws/permission.go
@@
-75,7
+75,9
@@
func (pc *cachingPermChecker) Check(ctx context.Context, uuid string) (bool, err
}
pc.nMisses++
}
pc.nMisses++
- err = pc.RequestAndDecode(&buf, "GET", path, nil, url.Values{
+ ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Minute))
+ defer cancel()
+ err = pc.RequestAndDecodeContext(ctx, &buf, "GET", path, nil, url.Values{
"include_trash": {"true"},
"select": {`["uuid"]`},
})
"include_trash": {"true"},
"select": {`["uuid"]`},
})