service id usage refactor
This commit is contained in:
parent
7cef9cbe8d
commit
e6da13e657
5 changed files with 19 additions and 21 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue