mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-08-01 01:26:19 +00:00
e55ddf2e24
Expose a public registration hook so external packages that register a channel factory via channels.RegisterFactory can also register the channel's settings struct prototype. Without this, InitChannelList rejects any channel type absent from the private channelSettingsFactory map, making out-of-tree channels impossible without forking. The map access is now guarded by a RWMutex. This is additive and changes no existing behavior.