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

Switch to net-rpc-msgpackrpc #1307

Merged
merged 3 commits into from
Oct 15, 2015
Merged

Switch to net-rpc-msgpackrpc #1307

merged 3 commits into from
Oct 15, 2015

Conversation

ryanuber
Copy link
Member

Replaces the direct use of net/rpc's client/server codec's Call() method with hashicorp/net-rpc-msgpackrpc. Since we use a multiplexer we want to avoid the additional overhead we incur for a goroutine-per-connection.

@@ -14,6 +14,8 @@ import (
"github.com/hashicorp/raft"
)

var msgpackHandle = &codec.MsgpackHandle{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to put a comment on here since it's just hangin' out. I see why you moved it to this file.

@slackpad
Copy link
Contributor

LGTM

ryanuber added a commit that referenced this pull request Oct 15, 2015
Switch to net-rpc-msgpackrpc
@ryanuber ryanuber merged commit e115ada into master Oct 15, 2015
@ryanuber ryanuber deleted the f-rpc branch October 15, 2015 21:57
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.

2 participants