projects
/
perl-indexdata-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f947811
)
Remove random sleep that was added for concurrency testing.
author
Mike Taylor
<mike@indexdata.com>
Tue, 9 Dec 2014 12:18:50 +0000
(12:18 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 9 Dec 2014 12:18:50 +0000
(12:18 +0000)
lib/IndexData/Utils/PersistentCounter.pm
patch
|
blob
|
history
diff --git
a/lib/IndexData/Utils/PersistentCounter.pm
b/lib/IndexData/Utils/PersistentCounter.pm
index
3f2ae66
..
ed15817
100644
(file)
--- a/
lib/IndexData/Utils/PersistentCounter.pm
+++ b/
lib/IndexData/Utils/PersistentCounter.pm
@@
-35,7
+35,6
@@
sub next {
flock($fh, 2) || die "can't lock file";
my $n = <$fh>;
$fh->seek(0, 0);
- sleep(int(rand(2)));
$fh->print($n+1, "\n");
$fh->close() or return undef;
return $n+0;