mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
Small fix
This commit is contained in:
parent
b7791d7ebf
commit
24980d473a
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 299d39bc6e31501e61f56f72a1751209379aaf00
|
||||
Subproject commit b6e8bd2600e38afa4e6ad60b9bfdf9dea9dbd94c
|
@ -143,11 +143,11 @@ abstract class DriverArray implements DbArray
|
||||
protected static function migrateDataToDb(self $new, $old): \Generator
|
||||
{
|
||||
if (!empty($old) && static::getClassName($old) !== static::getClassName($new)) {
|
||||
Logger::log('Converting '.\get_class($old).' to '.\get_class($new), Logger::ERROR);
|
||||
|
||||
if (!$old instanceof DbArray) {
|
||||
$old = yield MemoryArray::getInstance('', $old, new Memory);
|
||||
}
|
||||
Logger::log('Converting '.\get_class($old).' to '.\get_class($new), Logger::ERROR);
|
||||
|
||||
$counter = 0;
|
||||
$total = yield $old->count();
|
||||
$iterator = $old->getIterator();
|
||||
|
Loading…
Reference in New Issue
Block a user