Skip to content

Commit

Permalink
chore: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
QizhengMo committed Jan 22, 2024
1 parent 09632ba commit 8988594
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ protected boolean shouldMergeGlobalDefault() {
return true;
}

/**
* Query service collect config from db,
* merge multi env config into root config according to the tags sent from agent.
* Match the first config having the same tag with agent.
* @param serverTags server tags sent from agent, e.g. env: fat
*/
public ServiceCollectConfiguration queryConfigByEnv(String appId,
Map<String, String> serverTags) {
ServiceCollectConfiguration config = useResult(appId);
if (serverTags == null || serverTags.isEmpty()) {
if (serverTags == null || serverTags.isEmpty() || config == null) {
return config;
}

Expand Down

0 comments on commit 8988594

Please sign in to comment.