fix: issues

This commit is contained in:
Rogee
2024-12-31 19:32:01 +08:00
parent 498a820a54
commit 6fa7f6d1d8
2 changed files with 2 additions and 2 deletions

View File

@@ -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
} }

View File

@@ -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