From 22fb8900c9482cd4f032820d19caaefe654daa34 Mon Sep 17 00:00:00 2001 From: pingfang Date: Wed, 25 Mar 2020 17:44:06 +0800 Subject: [PATCH] support server cookie --- servant/libservant/ServantHandle.cpp | 2 +- servant/servant/ServantHandle.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/servant/libservant/ServantHandle.cpp b/servant/libservant/ServantHandle.cpp index 72f13e6..56b8f67 100644 --- a/servant/libservant/ServantHandle.cpp +++ b/servant/libservant/ServantHandle.cpp @@ -22,6 +22,7 @@ #include "servant/AppProtocol.h" #include "servant/BaseF.h" #include "servant/TarsNodeF.h" +#include "servant/TarsCookie.h" #ifdef _USE_OPENTRACKING #include "servant/text_map_carrier.h" #endif @@ -822,7 +823,6 @@ void ServantHandle::handleTarsProtocol(const TarsCurrentPtr ¤t) //处理染色消息 string dyeingKey = ""; TarsDyeingSwitch dyeSwitch; - if (processDye(current, dyeingKey)) { dyeSwitch.enableDyeing(dyeingKey); diff --git a/servant/servant/ServantHandle.h b/servant/servant/ServantHandle.h index fef1780..d719c07 100644 --- a/servant/servant/ServantHandle.h +++ b/servant/servant/ServantHandle.h @@ -188,9 +188,8 @@ protected: /** * 处理cookie - * */ - bool processCookie(const TarsCurrentPtr ¤t, string &cookie); + bool processCookie(const TarsCurrentPtr ¤t, map &cookie); /** * 检查set调用合法性