mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-03 15:53:56 +00:00
docs(sdk): 修正 ProxyReg 字段注释里的旧名(DeclareProxy→RegisterProxy)
Rename 时漏改了字段注释。代码本身一致(proxyReg 字段 + RegisterProxy 方法), 但注释里写着一个不存在的 API 名,读者按注释找不到方法。
This commit is contained in:
2
third_party/homeagent-sdk/sdk/plugin.go
vendored
2
third_party/homeagent-sdk/sdk/plugin.go
vendored
@ -353,7 +353,7 @@ type PluginSDK struct {
|
||||
events EventSubscriber
|
||||
plgMgr PluginMgrAPI
|
||||
|
||||
// proxyDecl 是反代声明的收集回调(内置插件经 DeclareProxy 声明服务)。
|
||||
// proxyReg 是反代声明的注册回调(内置插件经 RegisterProxy 声明服务)。
|
||||
// 与上面的 API 字段同受 apiMu 保护——写方是内核注入,读方是插件 Start
|
||||
// 起的 goroutine。
|
||||
proxyReg ProxyRegistrar
|
||||
|
||||
Reference in New Issue
Block a user