Adding a sepcific template initialization in messaging_service to use
the serializer This patch adds a specific template initialization so that the rpc would use the serializer and deserializer that are auto-generated. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
@@ -36,9 +36,21 @@
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "range.hh"
|
||||
#include "frozen_schema.hh"
|
||||
#include "serializer_impl.hh"
|
||||
|
||||
namespace net {
|
||||
|
||||
template<typename Output>
|
||||
void write(serializer, Output& out, const gms::gossip_digest_ack& data) {
|
||||
ser::serialize(out, data);
|
||||
}
|
||||
|
||||
template <typename Input>
|
||||
gms::gossip_digest_ack
|
||||
read(serializer, Input& in, rpc::type<gms::gossip_digest_ack> type) {
|
||||
return ser::deserialize(in, type);
|
||||
}
|
||||
|
||||
static logging::logger logger("messaging_service");
|
||||
|
||||
using inet_address = gms::inet_address;
|
||||
|
||||
Reference in New Issue
Block a user