mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
fix/enterpriseportal: fix registration of connectRPC handler options (#63058)
This commit is contained in:
parent
8f3a9d5260
commit
c5c8db6205
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user