diff --git a/apis/channels.lua b/apis/channels.lua index fbffe91..a4c643d 100644 --- a/apis/channels.lua +++ b/apis/channels.lua @@ -52,15 +52,15 @@ Channels.registry = { } --- Channel mode controls which channel number is returned by get(). --- "current" — use legacy channel numbers (default, safe) --- "target" — use new channel numbers (post-migration) +-- "current" — use legacy channel numbers (for rollback) +-- "target" — use new channel numbers (default, post-migration) -- "dual" — listeners open both; senders use target -Channels.mode = 'current' +Channels.mode = 'target' --- Load channel mode from persistent config if available. -- Called automatically on require; can be called again to reload. function Channels.loadConfig() - local cfg = Config.load('platform', { channelMode = 'current' }) + local cfg = Config.load('platform', { channelMode = 'target' }) if cfg.channelMode then Channels.mode = cfg.channelMode end