TP-55555 | kafka fix
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"cybertron/internal/client/elastic"
|
||||
"cybertron/internal/database"
|
||||
"cybertron/internal/transport/handler"
|
||||
inPodCache "cybertron/pkg/cache"
|
||||
"cybertron/pkg/db"
|
||||
"cybertron/pkg/houstonClient"
|
||||
httpclient "cybertron/pkg/httpClient"
|
||||
@@ -66,12 +67,13 @@ func InitDependencies() *Dependencies {
|
||||
elasticSearch, _ := elastic.NewElasticClient(*configs.GetElasticConfig())
|
||||
mjolnirClient := mjolnirClient.NewMjolnirClient(*configs.GetMjolnirConfig())
|
||||
houstonClient := houstonClient.NewHoustonClient(*configs.GetHoustonConfig())
|
||||
cacheClient := inPodCache.NewCache()
|
||||
|
||||
documentServiceClient := document.NewDocumentServiceHttpClient(httpClient, logger, configs.GetDocumentServiceHttpClientConfigs())
|
||||
projectServiceClient := service.NewProjectCreator(logger, dbClient, s3Client, kafkaProducer)
|
||||
sourceMapServiceClient := service.NewSourceMapService(dbClient, s3Client, configs.GetAWSConfig())
|
||||
releaseServiceClient := service.NewReleaseService(logger, dbClient)
|
||||
exceptionServiceClient := service.NewExceptionService(logger, dbClient, kafkaProducer)
|
||||
exceptionServiceClient := service.NewExceptionService(logger, dbClient, kafkaProducer, cacheClient)
|
||||
searchServiceClient := service.NewSearchService(logger, elasticSearch)
|
||||
authService := service.NewAuthService(mjolnirClient)
|
||||
houstonService := service.NewHoustonService(logger, dbClient, kafkaProducer, houstonClient)
|
||||
|
||||
@@ -11,6 +11,6 @@ func ExceptionRouter(r *gin.Engine, dep *dependencies.Dependencies) {
|
||||
exceptionHandler := handler.NewExceptionHandler(dep.Service.ExceptionService)
|
||||
exceptionRouterGroup := r.Group("/api")
|
||||
{
|
||||
exceptionRouterGroup.POST("/:projectId/envelope", exceptionHandler.CatchErrors)
|
||||
exceptionRouterGroup.POST("/:projectId/envelope/", exceptionHandler.CatchErrors)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user