diff --git a/app/Console/Commands/Grapper/Logifuture/Soccer.php b/app/Console/Commands/Grapper/Logifuture/Soccer.php index a1c52567..dea22a5e 100644 --- a/app/Console/Commands/Grapper/Logifuture/Soccer.php +++ b/app/Console/Commands/Grapper/Logifuture/Soccer.php @@ -96,7 +96,7 @@ class Soccer $res->margin = $_3way['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } @@ -124,7 +124,7 @@ class Soccer $res->margin = $_total['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } @@ -147,7 +147,7 @@ class Soccer $res->margin = $_ggng['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } @@ -171,7 +171,7 @@ class Soccer $res->margin = $_dc['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/Logifuture/Tennis.php b/app/Console/Commands/Grapper/Logifuture/Tennis.php index 6ff830d9..25dfe459 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tennis.php +++ b/app/Console/Commands/Grapper/Logifuture/Tennis.php @@ -90,7 +90,7 @@ class Tennis $res->margin = $ml['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } @@ -113,7 +113,7 @@ class Tennis $res->margin = $mls1['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php index 5a066913..031509f4 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php @@ -42,7 +42,7 @@ class LogifutureStorePoints $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php index a45a293b..1dd01c27 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php @@ -42,7 +42,7 @@ class LogifutureStorePointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php index 33b94fdd..b0ff8e11 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php @@ -42,7 +42,7 @@ class LogifutureStoreTotals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php index b21c8d74..06b3dd46 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php @@ -42,7 +42,7 @@ class LogifutureStoreTotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Fixtures.php b/app/Console/Commands/Grapper/Magloo/Fixtures.php index a9f6d1ad..92dcc191 100644 --- a/app/Console/Commands/Grapper/Magloo/Fixtures.php +++ b/app/Console/Commands/Grapper/Magloo/Fixtures.php @@ -116,7 +116,7 @@ class Fixtures 'sport_id' => $sport_id, 'bookmaker_id' => Nuh::$options['bookmaker_id'], ], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php index f451554a..450b259e 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php @@ -29,7 +29,7 @@ class MaglooStore1x2 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php index 9b6076c1..2f4005cd 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php @@ -30,7 +30,7 @@ class MaglooStoreDc $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php index 333a88c5..88fbfe7d 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php @@ -28,7 +28,7 @@ class MaglooStoreGgng $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php index 60059116..24505fc2 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php @@ -39,7 +39,7 @@ class MaglooStorePoints $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php index e9be2d18..024ccbeb 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php @@ -39,7 +39,7 @@ class MaglooStorePointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php index 5b66e266..293202c6 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php @@ -39,7 +39,7 @@ class MaglooStoreTotals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php index a18fc61f..46725278 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php @@ -39,7 +39,7 @@ class MaglooStoreTotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php index 5e14a051..a8ed3643 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php @@ -28,7 +28,7 @@ class MaglooStoreTq $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Fixtures.php b/app/Console/Commands/Grapper/TxOdds/Fixtures.php index 6158ac83..528060c2 100644 --- a/app/Console/Commands/Grapper/TxOdds/Fixtures.php +++ b/app/Console/Commands/Grapper/TxOdds/Fixtures.php @@ -77,7 +77,7 @@ class Fixtures DB::transaction(function () use ($event, $row) { Event::updateOrCreate(['id' => (int) $row['id']], $event); - usleep(250000); + }, 5); $group = [ diff --git a/app/Console/Commands/Grapper/TxOdds/Odds.php b/app/Console/Commands/Grapper/TxOdds/Odds.php index fc95298e..693a0e57 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds.php @@ -236,7 +236,7 @@ class Odds $res = DB::transaction(function () use ($row, $event) { return Event::updateOrCreate(['id' => (int) $row['id']], $event); - usleep(250000); + }, 5); $event_id = $res->id; @@ -327,7 +327,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); - usleep(250000); + }, 5); break; } @@ -345,7 +345,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); - usleep(250000); + }, 5); break; } @@ -364,7 +364,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); - usleep(250000); + }, 5); break; } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php index 1fba0c93..32094c59 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php @@ -31,7 +31,7 @@ class Odds_2Way DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php index 840a80e2..f6ace8fa 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php @@ -30,7 +30,7 @@ class Odds_2WayS1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php index 1277bfb9..bdb3f3b3 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php @@ -33,7 +33,7 @@ class Odds_3Way $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php index 9c628d7d..38b52ee5 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php @@ -32,7 +32,7 @@ class Odds_3WayHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php index 100608d8..5c662979 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php @@ -32,7 +32,7 @@ class Odds_Dc $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php index 0b3c84ae..b5522d11 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php @@ -30,7 +30,7 @@ class Odds_Dnb $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php index 3c04121e..3b917738 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php @@ -30,7 +30,7 @@ class Odds_Ggng $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php index f74689fc..97bd44d4 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php @@ -44,7 +44,7 @@ class Odds_Points $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php index 5d45dc3e..c811e826 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php @@ -43,7 +43,7 @@ class Odds_PointsHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php index 15c1d59f..0067ccfd 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php @@ -43,7 +43,7 @@ class Odds_PointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php index a6da001a..5040d957 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php @@ -50,7 +50,7 @@ class Odds_Totals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php index 9fa87a95..1f4f5055 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php @@ -50,7 +50,7 @@ class Odds_TotalsHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php index 95bdb324..88d26157 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php @@ -50,7 +50,7 @@ class Odds_TotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php index 59310fd0..9997cdbc 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php @@ -30,7 +30,7 @@ class Odds_Tq $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); - usleep(250000); + }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php b/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php index d395a1af..3fe50086 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php @@ -39,7 +39,7 @@ class ActiveSpread DB::transaction(function () use ($table, $event_id, $bookmaker_id) { DB::table($table)->where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->update(['active_spread' => 0]); - usleep(250000); + }, 5); if (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1'])) {