From 58897caffdd3966a0afbe99c834b4611a8e89206 Mon Sep 17 00:00:00 2001 From: Will Hester Date: Fri, 8 Nov 2024 15:19:46 +0000 Subject: [PATCH] why --- go/host/storage/db_init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/host/storage/db_init.go b/go/host/storage/db_init.go index 6603c79ead..1f1abd1d28 100644 --- a/go/host/storage/db_init.go +++ b/go/host/storage/db_init.go @@ -13,7 +13,7 @@ import ( const ( HOST = "HOST_" - sqliteHostCfg = "_foreign_keys=on&_journal_mode=wal&_txlock=immediate&_synchronous=normal&mode=memory&cache=shared" + sqliteHostCfg = "mode=memory&cache=shared&_foreign_keys=on&_journal_mode=wal&_txlock=immediate&_synchronous=normal" ) // CreateDBFromConfig creates an appropriate ethdb.Database instance based on your config @@ -24,7 +24,7 @@ func CreateDBFromConfig(cfg *hostconfig.HostConfig, logger gethlog.Logger) (host } if cfg.UseInMemoryDB { logger.Info("UseInMemoryDB flag is true, data will not be persisted. Creating in-memory database...") - sqliteDB, err := sqlite.CreateTemporarySQLiteHostDB(dbName, "mode=memory&cache=shared&_foreign_keys=on") + sqliteDB, err := sqlite.CreateTemporarySQLiteHostDB(dbName, sqliteHostCfg) if err != nil { return nil, fmt.Errorf("could not create in memory sqlite DB: %w", err) }