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] = [:]