Skip to content
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 ETLS/RPC/mux packages #303

Merged
merged 32 commits into from
Apr 8, 2019
Merged

Refactor ETLS/RPC/mux packages #303

merged 32 commits into from
Apr 8, 2019

Conversation

leventeliu
Copy link
Contributor

Redesigned package hierarchies:

  • crypto/etls: provides crypto connection, doesn't know about NodeID
  • noconn: based on crypto/etls, node-oriented connection, depends on a node ID Resolver; provides noconn Dial/DialEx/Accept methods
  • rpc: based on noconn, defines Server/NodeConnPool interface/Caller/PersistentCaller
  • rpc/mux: multiplexing version of rpc; implements a common used version of Resolver interface

rpc/mux/wrapper.go Outdated Show resolved Hide resolved
@leventeliu leventeliu changed the title [WIP] Refactor ETLS/RPC/mux packages Refactor ETLS/RPC/mux packages Apr 3, 2019
@CovenantSQL CovenantSQL deleted a comment from codecov bot Apr 4, 2019
@CovenantSQL CovenantSQL deleted a comment from codecov bot Apr 4, 2019
rpc/client.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Apr 4, 2019

Codecov Report

Merging #303 into develop will decrease coverage by 0.14%.
The diff coverage is 81.92%.

@@             Coverage Diff             @@
##           develop     #303      +/-   ##
===========================================
- Coverage    81.06%   80.92%   -0.15%     
===========================================
  Files          162      173      +11     
  Lines        11883    12056     +173     
===========================================
+ Hits          9633     9756     +123     
- Misses        1544     1581      +37     
- Partials       706      719      +13

@xq262144 xq262144 merged commit 570c5e0 into develop Apr 8, 2019
@laodouya laodouya deleted the feature/rpc_improve branch April 8, 2019 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants