Skip to content

Commit

Permalink
PR Comment Fix: Remove Store as a config option
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Aug 14, 2024
1 parent a18cbcf commit 1ab600e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func runWorker(ctx context.Context) {

inv, err := store.NewRepository(
ctx,
model.StoreKind(theApp.Config.StoreKind),
model.FleetDB,
&theApp.Config.Endpoints.FleetDB,
theApp.Logger,
)
Expand Down
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
facility: sandbox
log_level: debug
namespace: default
store_kind: fleetdb
endpoints:
fleetdb:
authenticate: true
Expand Down
2 changes: 0 additions & 2 deletions internal/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ type Configuration struct {
// one of - info, debug, trace
LogLevel string `mapstructure:"log_level"`

StoreKind string `mapstructure:"store_kind"`

// Holds all endpoints
Endpoints Endpoints `mapstructure:"endpoints"`

Expand Down

0 comments on commit 1ab600e

Please sign in to comment.