Fix: Resolve 39 compilation errors - DebugBox, SocketBox, HTTPServerBox, IntentBox RwLock conversion

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-15 03:08:09 +00:00
parent d0a1e43f9a
commit 0d7e6adfa1
7 changed files with 90 additions and 60 deletions

View File

@ -52,10 +52,9 @@ impl BusEndpoint {
/// メッセージを配送
pub fn deliver(&self, intent: IntentBox, from: &str) {
let handlers = self.handlers.lock().unwrap();
let intent_data = intent.lock().unwrap();
let intent_name = &intent_data.name;
let intent_name = intent.get_name().to_string_box().value;
if let Some(intent_handlers) = handlers.get(intent_name) {
if let Some(intent_handlers) = handlers.get(&intent_name) {
for handler in intent_handlers {
handler(intent.clone(), from);
}