Skip to content

Commit

Permalink
refactor(limit): limit 1 notification per second in telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
ahbanavi committed Aug 22, 2024
1 parent 45b12ca commit 67c4ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function boot(): void
$limit = $chat_id < 0 ? 20 : 60;

return [
Limit::perSecond(3),
Limit::perSecond(1),
Limit::perMinute($limit)->by($chat_id),
];
});
Expand Down

0 comments on commit 67c4ba3

Please sign in to comment.