mirror of
https://github.com/kvazar-network/crawler-api-node.git
synced 2025-01-08 22:27:55 +00:00
change driver to sqlite
This commit is contained in:
parent
2d590c7fe1
commit
a91392bc35
@ -5,7 +5,7 @@ $semaphore = sem_get(1);
|
|||||||
if (false !== sem_acquire($semaphore, 1)) {
|
if (false !== sem_acquire($semaphore, 1)) {
|
||||||
|
|
||||||
require_once('config.php');
|
require_once('config.php');
|
||||||
require_once('library/mysql.php');
|
require_once('library/sqlite.php');
|
||||||
require_once('library/api.php');
|
require_once('library/api.php');
|
||||||
require_once('library/hash.php');
|
require_once('library/hash.php');
|
||||||
require_once('library/base58.php');
|
require_once('library/base58.php');
|
||||||
@ -13,7 +13,7 @@ if (false !== sem_acquire($semaphore, 1)) {
|
|||||||
require_once('library/crypto.php');
|
require_once('library/crypto.php');
|
||||||
require_once('library/helper.php');
|
require_once('library/helper.php');
|
||||||
|
|
||||||
$db = new MySQL();
|
$db = new SQLite();
|
||||||
$api = new API();
|
$api = new API();
|
||||||
|
|
||||||
$blockLast = $db->getLastBlock();
|
$blockLast = $db->getLastBlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user