-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Main][Task]27749889: Change AISKU Sync Mode to Receive #2333
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -317,7 +317,9 @@ export class CfgSyncPlugin extends BaseTelemetryPlugin implements ICfgSyncPlugin | |
if (JSON) { | ||
let cdnCfg = JSON.parse(response); //comments are not allowed | ||
let cfg = applyCdnfeatureCfg(cdnCfg, _self.core); | ||
cfg && _setCfg(cfg, isAutoSync); | ||
let newCfg = cfg && isPlainObject(cfg) && _replaceTartgetByKeys(cfg); | ||
newCfg && _setCfg(newCfg, isAutoSync); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. previous design: any configs from cdn, they will be directly applied to current |
||
//cfg && _setCfg(cfg, isAutoSync); | ||
} | ||
} else { | ||
_retryCnt ++; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the AISKU default receive mode to "receive" (will call "updateCfg" to update current core.config), previous one is "broadcast" (which means only send events out but not receiving any incoming changes)