Skip to content

Commit

Permalink
Lazy calls for transactors
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Mar 8, 2024
1 parent 1448a8a commit 5790760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class SchemasRoutesSpec extends BaseRouteSpec with IOFromMap with CatsIOValues {
private val config = SchemasConfig(eventLogConfig)

private val schemaDef = Schemas.definition(ValidateSchema.apply, clock)
private val schemaLog = ScopedEventLog(schemaDef, config.eventLog, xas)
private lazy val schemaLog = ScopedEventLog(schemaDef, config.eventLog, xas)

private lazy val routes =
Route.seal(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class ResourcesImplSpec
(r, p, _) => resources.fetch(r, p).attempt.map(_.left.map(_ => ResourceResolutionReport()))
)

private val resourceDef = Resources.definition(ValidateResource(resourceResolution), detectChanges, clock)
private val resourceLog = ScopedEventLog(resourceDef, eventLogConfig, xas)
private val resourceDef = Resources.definition(ValidateResource(resourceResolution), detectChanges, clock)
private lazy val resourceLog = ScopedEventLog(resourceDef, eventLogConfig, xas)

private lazy val resources: Resources = ResourcesImpl(
resourceLog,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class SchemasImplSuite extends NexusSuite with Doobie.Fixture with ConfigFixture
private val fetchContext = FetchContextDummy(Map(project.ref -> project.context), Set(projectDeprecated.ref))
private val config = SchemasConfig(eventLogConfig)

private val schemaDef = Schemas.definition(ValidateSchema.apply, clock)
private val schemaLog = ScopedEventLog(schemaDef, config.eventLog, xas)
private val schemaDef = Schemas.definition(ValidateSchema.apply, clock)
private lazy val schemaLog = ScopedEventLog(schemaDef, config.eventLog, xas)

private lazy val schemas: Schemas =
SchemasImpl(schemaLog, fetchContext, schemaImports, resolverContextResolution)
Expand Down

0 comments on commit 5790760

Please sign in to comment.