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.

---
 src/socket.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/socket.cpp b/src/socket.cpp
index aec42b4..1315474 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -52,7 +52,7 @@
 		auto DoRecv = [=] {
 			auto onRecvWithPerMsgCB = [this, onData](ShmSocket &socket, MsgI &imsg, BHMsgHead &head) {
 				RecvCB cb;
-				if (per_msg_cbs_->Find(head.msg_id(), cb)) {
+				if (per_msg_cbs_->Pick(head.msg_id(), cb)) {
 					cb(socket, imsg, head);
 				} else if (onData) {
 					onData(socket, imsg, head);

--
Gitblit v1.8.0