fix: issues
This commit is contained in:
@@ -36,7 +36,7 @@ func (h *Config) Address() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CMux struct {
|
type CMux struct {
|
||||||
Http http.Service
|
Http *http.Service
|
||||||
Grpc *grpc.Grpc
|
Grpc *grpc.Grpc
|
||||||
Mux cmux.CMux
|
Mux cmux.CMux
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ func Provide(opts ...opt.Option) error {
|
|||||||
if err := o.UnmarshalConfig(&config); err != nil {
|
if err := o.UnmarshalConfig(&config); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return container.Container.Provide(func(http http.Service, grpc *grpc.Grpc) (*CMux, error) {
|
return container.Container.Provide(func(http *http.Service, grpc *grpc.Grpc) (*CMux, error) {
|
||||||
l, err := net.Listen("tcp", config.Address())
|
l, err := net.Listen("tcp", config.Address())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user