Skip to content

Commit

Permalink
Rename sender to questioner.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuo committed Apr 2, 2011
1 parent ec3e1b4 commit 1bc126a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions protobuf/codec_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void testQuery()
{
muduo::Query query;
query.set_id(1);
query.set_sender("Chen Shuo");
query.set_questioner("Chen Shuo");
query.add_question("Running?");

std::string transport = encode(query);
Expand Down Expand Up @@ -65,7 +65,7 @@ void testAnswer()
{
muduo::Answer answer;
answer.set_id(1);
answer.set_sender("Chen Shuo");
answer.set_questioner("Chen Shuo");
answer.set_answerer("blog.csdn.net/Solstice");
answer.add_solution("Jump!");
answer.add_solution("Win!");
Expand Down
1 change: 1 addition & 0 deletions protobuf/descriptor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void testDescriptor()
T* new_obj = dynamic_cast<T*>(prototype->New());
assert(new_obj != NULL);
assert(new_obj != prototype);
assert(typeid(*new_obj) == typeid(T::default_instance()));
cout << "prototype->New() = " << new_obj << endl;
cout << endl;
delete new_obj;
Expand Down
4 changes: 2 additions & 2 deletions protobuf/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package muduo;

message Query {
required int64 id = 1;
required string sender = 2;
required string questioner = 2;

repeated string question = 3;
}

message Answer {
required int64 id = 1;
required string sender = 2;
required string questioner = 2;
required string answerer = 3;

repeated string solution = 4;
Expand Down

0 comments on commit 1bc126a

Please sign in to comment.