Remove random sleep that was added for concurrency testing.
authorMike Taylor <mike@indexdata.com>
Tue, 9 Dec 2014 12:18:50 +0000 (12:18 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 9 Dec 2014 12:18:50 +0000 (12:18 +0000)
lib/IndexData/Utils/PersistentCounter.pm

index 3f2ae66..ed15817 100644 (file)
@@ -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;