Skip to content

Commit

Permalink
Updating store to use new SQLite storage constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
andream16 committed Dec 16, 2024
1 parent 4e10780 commit 1fa7c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/component/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ 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"
)

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:
Expand Down

0 comments on commit 1fa7c48

Please sign in to comment.