From 1fa7c48f67615cb559e54ca66212b2cb6a1d3ddd Mon Sep 17 00:00:00 2001 From: andream16 Date: Wed, 11 Dec 2024 17:54:43 +0000 Subject: [PATCH] Updating store to use new SQLite storage constructor. --- sdk/component/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/component/store.go b/sdk/component/store.go index 6a6620f33..b4c5b728f 100644 --- a/sdk/component/store.go +++ b/sdk/component/store.go @@ -5,7 +5,7 @@ import ( "github.com/go-errors/errors" - localstore "github.com/smithy-security/smithy/sdk/component/store/local" + "github.com/smithy-security/smithy/sdk/component/store/local/sqlite" findingsclient "github.com/smithy-security/smithy/sdk/component/store/remote/findings-client" "github.com/smithy-security/smithy/sdk/component/store/remote/postgresql" ) @@ -13,7 +13,7 @@ import ( func newStore(ctx context.Context, storeType StoreType) (Storer, error) { switch storeType { case StoreTypeSqlite: - return localstore.NewManager() + return sqlite.NewManager(ctx) case StoreTypePostgresql: return postgresql.NewManager(ctx) case StoreTypeFindingsClient: