service id usage refactor

This commit is contained in:
nquidox 2026-04-01 17:48:12 +03:00
parent 7cef9cbe8d
commit e6da13e657
5 changed files with 19 additions and 21 deletions

View file

@ -16,8 +16,9 @@ type Handler struct {
}
type Deps struct {
Addr string
Timeout time.Duration
Addr string
Timeout time.Duration
ServiceId int32
}
func New(deps Deps) *Handler {
@ -35,6 +36,6 @@ func New(deps Deps) *Handler {
return &Handler{
client: client,
service: newService(client, deps.Timeout),
service: newService(client, deps.Timeout, deps.ServiceId),
}
}