Skip to content

Commit

Permalink
server: factor and simplify the network setup logic
Browse files Browse the repository at this point in the history
This patch performs the following cleanups and refactors:

- adds explanatory comments;
- factors the call to net.Listen and starting the server
  for the admin UI into a new method `(*Server).startServeUI()`.
- factors the call to net.Listen and starting the RPC server
  into a new method `(*Server).startServeRPC()`.
- factors the start of the SQL server into a new method
  `(*Server).startServeSQL()`.
- extracts the TCP keepalive configuration function
  into a top-level function (was a closure).

Release note: None
  • Loading branch information
knz committed Aug 8, 2019
1 parent 45e603f commit 9f2752b
Showing 1 changed file with 267 additions and 186 deletions.
Loading

0 comments on commit 9f2752b

Please sign in to comment.