1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

support use of listen options (#2536)

* feat: support use of listen options

* style: Adjust the import order of packages.
This commit is contained in:
Arvin
2022-07-30 17:56:14 +08:00
committed by GitHub
parent adcc1761d0
commit 63a9b94820
8 changed files with 246 additions and 16 deletions

View File

@ -811,7 +811,7 @@ func (s *rpcServer) Start() error {
config := s.Options()
// start listening on the transport
ts, err := config.Transport.Listen(config.Address)
ts, err := config.Transport.Listen(config.Address, config.ListenOptions...)
if err != nil {
return err
}