From 1f3729698a131b3f701f67adb6a1258aa1235dce Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 20 四月 2021 15:43:53 +0800
Subject: [PATCH] api server callback change tag to src; refactor.

---
 utest/api_test.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utest/api_test.cpp b/utest/api_test.cpp
index b2c00a4..ae3f10a 100644
--- a/utest/api_test.cpp
+++ b/utest/api_test.cpp
@@ -66,7 +66,7 @@
                 const int proc_id_len,
                 const void *data,
                 const int data_len,
-                const void *tag)
+                void *src)
 {
 	// printf("ServerProc: ");
 	// DEFER1(printf("\n"););
@@ -76,7 +76,7 @@
 		reply.set_data(" reply: " + request.data());
 		std::string s(reply.SerializeAsString());
 		// printf("%s", reply.data().c_str());
-		BHServerCallbackReply(tag, s.data(), s.size());
+		BHSendReply(src, s.data(), s.size());
 		++Status().nserved_;
 	}
 }

--
Gitblit v1.8.0