fix/enterpriseportal: fix registration of connectRPC handler options (#63058)

This commit is contained in:
Robert Lin 2024-06-04 09:00:01 -07:00 committed by GitHub
parent 8f3a9d5260
commit c5c8db6205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 10 deletions

View File

@ -34,11 +34,16 @@ func RegisterV1(
dotcom DotComDB,
opts ...connect.HandlerOption,
) {
mux.Handle(codyaccessv1connect.NewCodyAccessServiceHandler(&handlerV1{
logger: logger.Scoped("codyaccess.v1"),
samsClient: samsClient,
dotcom: dotcom,
}))
mux.Handle(
codyaccessv1connect.NewCodyAccessServiceHandler(
&handlerV1{
logger: logger.Scoped("codyaccess.v1"),
samsClient: samsClient,
dotcom: dotcom,
},
opts...,
),
)
}
type handlerV1 struct {

View File

@ -31,11 +31,16 @@ func RegisterV1(
dotcom DotComDB,
opts ...connect.HandlerOption,
) {
mux.Handle(subscriptionsv1connect.NewSubscriptionsServiceHandler(&handlerV1{
logger: logger.Scoped("subscriptions.v1"),
samsClient: samsClient,
dotcom: dotcom,
}))
mux.Handle(
subscriptionsv1connect.NewSubscriptionsServiceHandler(
&handlerV1{
logger: logger.Scoped("subscriptions.v1"),
samsClient: samsClient,
dotcom: dotcom,
},
opts...,
),
)
}
type handlerV1 struct {