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

Extract Protocol Buffers encoding/decoding from client #57

Merged
merged 6 commits into from
Jun 5, 2012

Conversation

seancribbs
Copy link
Contributor

This is one of a series of pull requests to refactor the PBC interface of Riak and make it more general.

Related: basho/riak_kv#321, basho/riak#138, basho/riak_pb, basho/riak_api

All encoding and decoding functions and .proto files were removed from the client library and moved into the new riak_pb application. This enables us to keep a single source-of-truth about the serialization format of protocol messages that is reused in the client and server and independent of both of them, and to remove the dependency of the server on the client library (a needless coupling).

@ghost ghost assigned seancribbs May 18, 2012
@ghost ghost assigned rzezeski May 24, 2012
Don't run tests for deps.
@@ -1,6 +1,6 @@
{cover_enabled, true}.
{erl_opts, [warnings_as_errors]}.
{deps, [
{protobuffs, "0.6.*", {git, "git://github.com/basho/erlang_protobuffs", {tag, "protobuffs-0.6.0"}}}
{riak_pb, "1.2.*", {git, "git://github.com/basho/riak_pb", "master"}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I see no reason to fix on version for master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean to use a ".*" version?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, IIRC that's what we do for everything else on master.

@rzezeski
Copy link
Contributor

rzezeski commented Jun 4, 2012

I walked through this code making sure what was removed was migrated to riak_pb. It compiles and tests pass.

+1 to merge.

@rzezeski
Copy link
Contributor

rzezeski commented Jun 4, 2012

+1 to merge

seancribbs pushed a commit that referenced this pull request Jun 5, 2012
Extract Protocol Buffers encoding/decoding from client
@seancribbs seancribbs merged commit 1ddd2e8 into master Jun 5, 2012
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