Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Apr 15, 2024
1 parent 522b49a commit 532227e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ object ProjectProcessor {
): IO[ProjectProcessor] =
for {
uuidF <- EventUUIDF.init()
initializer <- ViewWiring.viewInitializer2(fetchContext, rcr, config, clock, xas)
initializer <- ViewWiring.viewInitializer(fetchContext, rcr, config, clock, xas)
} yield {
val disableDeletion: ValidateProjectDeletion = (p: ProjectRef) => IO.raiseError(ProjectDeletionIsNotAllowed(p))
val projects = ProjectsImpl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,17 @@ object ViewWiring {
)(jsonLdApi, UUIDF.fixed(uuid))
}

def viewInitializer2(
def viewInitializer(
fetchContext: FetchContext,
rcr: ResolverContextResolution,
config: ShipConfig,
clock: EventClock,
xas: Transactors
)(implicit jsonLdApi: JsonLdApi) = {
)(implicit jsonLdApi: JsonLdApi): IO[ScopeInitializer] = {
for {
esViews <- elasticSearchViews(fetchContext, rcr, config.eventLog, clock, UUIDF.random, xas)
bgViews <- blazegraphViews(fetchContext, rcr, config.eventLog, clock, UUIDF.random, xas)
} yield {
viewInitializer(esViews, bgViews, config, clock, xas)
}
} yield viewInitializer(esViews, bgViews, config, clock, xas)
}

private def viewInitializer(
Expand All @@ -120,7 +118,7 @@ object ViewWiring {
config: ShipConfig,
clock: EventClock,
xas: Transactors
) = {
): ScopeInitializer = {
val viewInits = Set.empty[ScopeInitialization] +
new ElasticSearchScopeInitialization(
esViews,
Expand Down

0 comments on commit 532227e

Please sign in to comment.