mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 05:51:14 +01:00
Cleanup
This commit is contained in:
parent
581d00c80a
commit
4e71422f09
@ -7,7 +7,6 @@ namespace danog\MadelineProto\Db;
|
||||
use Amp\Sql\Pool;
|
||||
use Amp\Sql\Result;
|
||||
use PDO;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
use function serialize;
|
||||
|
||||
|
@ -26,8 +26,6 @@ use Amp\Sync\LocalMutex;
|
||||
use danog\MadelineProto\Db\DbPropertiesTrait;
|
||||
use Generator;
|
||||
|
||||
use function Amp\delay;
|
||||
|
||||
/**
|
||||
* Event handler.
|
||||
*/
|
||||
@ -130,7 +128,8 @@ abstract class EventHandler extends InternalDoc
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function waitForStartInternal(): void {
|
||||
public function waitForStartInternal(): void
|
||||
{
|
||||
$this->startFuture?->await();
|
||||
}
|
||||
/**
|
||||
|
@ -47,7 +47,6 @@ final class GarbageCollector
|
||||
return;
|
||||
}
|
||||
self::$started = true;
|
||||
self::getMemoryConsumption();
|
||||
|
||||
EventLoop::repeat(1, static function (): void {
|
||||
$currentMemory = self::getMemoryConsumption();
|
||||
|
Loading…
x
Reference in New Issue
Block a user