[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[ ] A changelog entry has been made for the appropriate packages.
[x] Format code with the latest stable rustfmt
Overview
When starting a server, message "starting service: "{}", workers: {}, listening on: {}" is never logged.
The issue happens when mapping a builder.sockets and using mem::take() that replaces the original value with default. Since builder.sockets is empty, it won't log anything in the for cycle.
PR Type
Bug Fix
PR Checklist
Check your PR fulfills the following:
Overview
When starting a server, message
"starting service: "{}", workers: {}, listening on: {}"
is never logged. The issue happens when mapping abuilder.sockets
and usingmem::take()
that replaces the original value with default. Sincebuilder.sockets
is empty, it won't log anything in the for cycle.