Skip to content

create router.go and create setupRouter() function#85

Open
c1ndytat wants to merge 1 commit intomainfrom
cindy/cleanup_router_setup
Open

create router.go and create setupRouter() function#85
c1ndytat wants to merge 1 commit intomainfrom
cindy/cleanup_router_setup

Conversation

@c1ndytat
Copy link
Copy Markdown
Collaborator

created router.go file, created a setupRouter function, and update main.go

Copy link
Copy Markdown
Collaborator

@maernest04 maernest04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W PR

@c1ndytat c1ndytat changed the title create router.go and create setupRounter() function create router.go and create setupRouter() function Apr 23, 2026
Comment thread cmd/server/router.go
Comment on lines +21 to +24
producer := registration.NewProducer(
[]string{cfg.KafkaBroker},
cfg.KafkaTopic,
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's extract the producer creation logic

Comment thread cmd/server/main.go
Redis: db.NewRedisStore(db.RedisClient()),
}

producer := registration.NewProducer(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants