Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas committed Oct 3, 2023
1 parent 9f1bf16 commit ae959a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ func resolveOptions(v *viper.Viper, userOptions ...fx.Option) []fx.Option {

// Handle api part
options = append(options, api.Module(api.Config{
StorageDriver: v.GetString(storageDriverFlag),
Version: Version,
UseScopes: v.GetBool(authBearerUseScopesFlag),
RedisLockStrategy: redisLockStrategy,
StorageDriver: v.GetString(storageDriverFlag),
Version: Version,
UseScopes: v.GetBool(authBearerUseScopesFlag),
}))

// Handle storage driver
Expand All @@ -90,6 +89,7 @@ func resolveOptions(v *viper.Viper, userOptions ...fx.Option) []fx.Option {
ConnString: v.GetString(storagePostgresConnectionStringFlag),
}
}(),
RedisLockStrategy: redisLockStrategy,
}))

options = append(options, internal.NewAnalyticsModule(v, Version))
Expand Down
4 changes: 2 additions & 2 deletions pkg/storage/sqlstorage/store_ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func (s *Store) Close(ctx context.Context) error {
return s.onClose(ctx)
}

func NewStore(schema Schema, singleWriter bool, executorProvider func(ctx context.Context) (executor, error),
func NewStore(schema Schema, singleInstance bool, executorProvider func(ctx context.Context) (executor, error),
onClose, onDelete func(ctx context.Context) error) *Store {

return &Store{
executorProvider: executorProvider,
schema: schema,
onClose: onClose,
onDelete: onDelete,
singleInstance: singleWriter,
singleInstance: singleInstance,
cache: cache.New(5*time.Minute, 10*time.Minute),
}
}
Expand Down

0 comments on commit ae959a8

Please sign in to comment.