Skip to content

Commit

Permalink
Update frequency random
Browse files Browse the repository at this point in the history
  • Loading branch information
denisyukphp committed Jun 21, 2024
1 parent 10bb4b3 commit 1107999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FrequencyRandomThrottler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
final class FrequencyRandomThrottler implements ThrottlerInterface
{
public function __construct(
private float $frequency = 0.8,
private float $threshold = 0.2,
private float $frequency = 0.8,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/FrequencyRandomThrottlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ final class FrequencyRandomThrottlerTest extends TestCase
public function testFrequencyRandomAlgorithm(): void
{
$throttler = new FrequencyRandomThrottler(
frequency: 0.8,
threshold: 0.2,
frequency: 0.8,
);
$collection = new InMemoryCollection([
new Node('192.168.0.1'),
Expand Down

0 comments on commit 1107999

Please sign in to comment.