update: preslash simple functions

- performance
This commit is contained in:
HDVinnie
2020-12-31 12:41:46 -05:00
parent 067554dbb8
commit 8a9d94e07a
47 changed files with 128 additions and 128 deletions
+2 -2
View File
@@ -387,8 +387,8 @@ class AnnounceController extends Controller
$connections = Peer::where('torrent_id', '=', $torrent->id)->where('user_id', '=', $user->id)->count();
// If Users Peer Count On A Single Torrent Is Greater Than X Return Error to Client
if ($connections > config('announce.rate_limit')) {
throw new TrackerException(138, [':limit' => config('announce.rate_limit')]);
if ($connections > \config('announce.rate_limit')) {
throw new TrackerException(138, [':limit' => \config('announce.rate_limit')]);
}
}