Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 24, 2024
1 parent 91dde9e commit cdf332d
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 4 deletions.
52 changes: 52 additions & 0 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/Core/Console/ConsoleKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Leantime\Core\Console;

use;
use Illuminate\Console\Command as LaravelCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Contracts\Console\Application as ConsoleApplicationContract;
Expand Down
4 changes: 1 addition & 3 deletions app/Core/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Leantime\Core\Middleware;

use Closure;
use Illuminate\Contracts\Cache\LockTimeoutException;
use Illuminate\Contracts\Session\Session;
use Illuminate\Routing\Route;
use Illuminate\Session\SessionManager;
Expand Down Expand Up @@ -86,12 +87,9 @@ protected function handleRequestWhileBlocking(IncomingRequest $request, $session
//Acquire lock every 50ms for 20 seconds
$lock->block(20);
return $this->handleStatefulRequest($request, $session, $next);

} catch (LockTimeoutException $e) {

$lock->block(60);
return $this->handleStatefulRequest($request, $session, $next);

} finally {
$lock?->release();
}
Expand Down

0 comments on commit cdf332d

Please sign in to comment.