Skip to content

Commit

Permalink
🔨DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
kananniftiyev committed Jul 4, 2024
1 parent 49deb99 commit 23c2db8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/auth-service/internal/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func init() {
var databaseInstance *gorm.DB
var databaseLock sync.Mutex

// TODO: Check database connection pool
func ConnectDatabase() *gorm.DB {
if databaseInstance == nil{
databaseLock.Lock()
Expand Down
1 change: 0 additions & 1 deletion backend/auth-service/internal/rest/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

// TODO: fix perfomance.
// TODO: create gRPC if needed.
// TODO: Reformat code

var userRepo = repository.NewUserRepository()
Expand Down
2 changes: 2 additions & 0 deletions backend/auth-service/internal/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func AuthStart() {
router.Use(middleware.Logger)
router.Use(middleware.Recoverer)
router.Use(middleware.CleanPath)
// Debug || Profiler
router.Mount("/debug", middleware.Profiler())


InitializeRoutes(router)
Expand Down
1 change: 0 additions & 1 deletion backend/file-service/internal/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/google/uuid"
)

// TODO: Fix jwt.

func GetFileURL(bucketName, objectName string) (string, error) {
app, err := database.InitializeFirebase()
Expand Down

0 comments on commit 23c2db8

Please sign in to comment.