Skip to content

Commit

Permalink
add backend repo back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Lombardi committed Jan 22, 2024
1 parent af4502b commit 92bf647
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ func NewGateway() (*Gateway, error) {
Scheduler: scheduler,
}

// backendRepo, err := repository.NewBackendPostgresRepository(config.Database.Postgres)
// if err != nil {
// return nil, err
// }
backendRepo, err := repository.NewBackendPostgresRepository(config.Database.Postgres)
if err != nil {
return nil, err
}

containerRepo := repository.NewContainerRedisRepository(redisClient)
// metricsRepo := repository.NewMetricsStatsdRepository()
metricsRepo := repository.NewMetricsStatsdRepository()

gateway.config = config
gateway.ContainerRepo = containerRepo
// gateway.BackendRepo = backendRepo
// gateway.metricsRepo = metricsRepo
gateway.BackendRepo = backendRepo
gateway.metricsRepo = metricsRepo

return gateway, nil
}
Expand Down

0 comments on commit 92bf647

Please sign in to comment.