From db6b90bf556217b77f5ca8afb016ee7b44bc0612 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Tue, 15 Jul 2025 17:09:53 +0800 Subject: [PATCH] fix --- Sources/sdlan/SDLNoticeClient.swift | 2 +- Sources/sdlan/SDLUDPHole.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/sdlan/SDLNoticeClient.swift b/Sources/sdlan/SDLNoticeClient.swift index 6073670..9523be6 100644 --- a/Sources/sdlan/SDLNoticeClient.swift +++ b/Sources/sdlan/SDLNoticeClient.swift @@ -15,7 +15,7 @@ import Foundation // import Foundation -import NIOCore +@preconcurrency import NIOCore import NIOPosix // 处理和sn-server服务器之间的通讯 diff --git a/Sources/sdlan/SDLUDPHole.swift b/Sources/sdlan/SDLUDPHole.swift index 74551bc..4d8184d 100644 --- a/Sources/sdlan/SDLUDPHole.swift +++ b/Sources/sdlan/SDLUDPHole.swift @@ -269,6 +269,7 @@ extension SDLUDPHole { // --MARK: 回调函数管理器 extension SDLUDPHole { + private final class HoleCallbackManager { // 对应请求体和相应的关系 private var callbacks: [UInt32:CallbackFun] = [:]