From 577ce0d231a4cb23e580d749fcdf4bf5e44ded1e Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Fri, 8 Jan 2016 14:26:51 +0200 Subject: [PATCH] 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 --- message/messaging_service.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/message/messaging_service.cc b/message/messaging_service.cc index 125ec2c875..7ea5146832 100644 --- a/message/messaging_service.cc +++ b/message/messaging_service.cc @@ -36,9 +36,21 @@ #include "dht/i_partitioner.hh" #include "range.hh" #include "frozen_schema.hh" +#include "serializer_impl.hh" namespace net { +template +void write(serializer, Output& out, const gms::gossip_digest_ack& data) { + ser::serialize(out, data); +} + +template +gms::gossip_digest_ack +read(serializer, Input& in, rpc::type type) { + return ser::deserialize(in, type); +} + static logging::logger logger("messaging_service"); using inet_address = gms::inet_address;