comments adapters since they are not in use

This commit is contained in:
fogelito committed 2022-12-21 11:29:46 +02:00
1 parent 07acfb330c
commit 7a340cb8f8
3 files changed
+58 -56

No files matched your search

+27 -26
View File
@@ -1,28 +1,29 @@
<?php
namespace Utopia\Mongo\Adapter;
use Utopia\Mongo\Adapter;
class SwooleClient extends Adapter
{
public function isConnected(): bool
{
// TODO: Implement isConnected() method.
}
public function connect(string $host, int $port = null, float $timeout = null): bool
{
// TODO: Implement connect() method.
}
public function send(mixed $data): int|bool
{
// TODO: Implement send() method.
}
public function recv(int $timeout = null): string|bool
{
// TODO: Implement recv() method.
}
}
//
//namespace Utopia\Mongo\Adapter;
//
//use Utopia\Mongo\Adapter;
//
//class SwooleClient extends Adapter
//{
// public function isConnected(): bool
// {
// // TODO: Implement isConnected() method.
// }
//
// public function connect(string $host, int $port = null, float $timeout = null): bool
// {
// // TODO: Implement connect() method.
// }
//
// public function send(mixed $data): int|bool
// {
// // TODO: Implement send() method.
// }
//
// public function recv(int $timeout = null): string|bool
// {
// // TODO: Implement recv() method.
// }
//}
+27 -26
View File
@@ -1,28 +1,29 @@
<?php
namespace Utopia\Mongo\Adapter;
use Utopia\Mongo\Adapter;
class SwooleCoroutineClient extends Adapter
{
public function isConnected(): bool
{
// TODO: Implement isConnected() method.
}
public function connect(string $host, int $port = null, float $timeout = null): bool
{
// TODO: Implement connect() method.
}
public function send(mixed $data): int|bool
{
// TODO: Implement send() method.
}
public function recv(int $timeout = null): string|bool
{
// TODO: Implement recv() method.
}
}
//
//namespace Utopia\Mongo\Adapter;
//
//use Utopia\Mongo\Adapter;
//
//class SwooleCoroutineClient extends Adapter
//{
// public function isConnected(): bool
// {
// // TODO: Implement isConnected() method.
// }
//
// public function connect(string $host, int $port = null, float $timeout = null): bool
// {
// // TODO: Implement connect() method.
// }
//
// public function send(mixed $data): int|bool
// {
// // TODO: Implement send() method.
// }
//
// public function recv(int $timeout = null): string|bool
// {
// // TODO: Implement recv() method.
// }
//}
+4 -4
View File
@@ -128,9 +128,9 @@ class MongoTest extends TestCase
self::expectExceptionCode(50);
$this->getDatabase()->find(
'movies',
['$where' => 'sleep(1000) || true'],
['maxTimeMS'=> 1]
)->cursor->firstBatch ?? [];
'movies',
['$where' => 'sleep(1000) || true'],
['maxTimeMS'=> 1]
)->cursor->firstBatch ?? [];
}
}