Commit 93938e76 authored by Mayank Manoj's avatar Mayank Manoj

Merge branch 'mayank' into 'master'

code running properly

See merge request !5
parents e140c269 0dc1284e
......@@ -26,7 +26,7 @@ public:
{
return;
}
virtual string getKeyValuePairs(int id)
virtual string getKeyValuePairs(int new_id,int id)
{
return "This will never run";
}
......@@ -75,9 +75,9 @@ public:
mycache.pushAll();
}
string getKeyValuePairs(int id)
string getKeyValuePairs(int new_id,int id)
{
return mycache.getKeyValuePairs(id);
return mycache.getKeyValuePairs(new_id,id);
}
};
......@@ -124,8 +124,8 @@ public:
}
// key1;key2;key3;;value1;value2;value3;
string getKeyValuePairs(int id)
string getKeyValuePairs(int new_id,int id)
{
return mycache.getKeyValuePairs(id);
return mycache.getKeyValuePairs(new_id,id);
}
};
\ No newline at end of file
......@@ -160,7 +160,7 @@ void RunClient() {
Info info;
ClientContext context;
Status status=stub->GETADDRESS(&context,null,&info);
std::cout<<"Server: "<<info.address()<<std::endl;
std::cout<<"Connected to Server: "<<info.address()<<std::endl;
std::string target_address(info.address());
// Instantiates the client
KeyValueServicesClient client(
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment