aboutsummaryrefslogtreecommitdiff
path: root/rate/rate_test.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2019-11-02 21:42:51 +1100
committerMatt Joiner <anacrolix@gmail.com>2019-11-02 21:42:51 +1100
commit37d974cae9a0bc06ccdf26b0ff16f14ded1eac02 (patch)
treebf6edad46d143271f90fa1dc18bda81e869d4a28 /rate/rate_test.go
parentAdd stmutil containers and ContextDoneVar (diff)
downloadstm-37d974cae9a0bc06ccdf26b0ff16f14ded1eac02.tar.gz
stm-37d974cae9a0bc06ccdf26b0ff16f14ded1eac02.tar.xz
stmutil.ContextDoneVar: Return true Var if the context is already done
This prevents needless races, such as in some of the rate limiting tests.
Diffstat (limited to 'rate/rate_test.go')
0 files changed, 0 insertions, 0 deletions