-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(main): move map_port to network #2115
refactor(main): move map_port to network #2115
Conversation
69cef9c
to
d41ece3
Compare
#include "network.h" | ||
#include "config.h" | ||
#include "logging.h" | ||
#include "utility.h" | ||
#include <algorithm> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure why clang format wants network.h
first, but whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's treated differently because it's the corresponding .h file for this .cpp file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that too but didn't necessarily see the same behavior in other cpp files.
d41ece3
to
959276c
Compare
This looks fine, but would you mind moving |
@cgutman Done! Also found a |
c9108ad
to
fad1ef4
Compare
Description
This PR moves the
map_port
function out ofmain
, and intonetwork
.Enabler for #1603
Screenshot
Issues Fixed or Closed
Type of Change
.github/...
)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.