Skip to content

Commit 42fb0b5

Browse files
authored
Merge pull request #294 from nacos-group/dev
release v1.3.6
2 parents 81d54b2 + 4359f77 commit 42fb0b5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ https://nacos-sdk-csharp.readthedocs.io/en/latest/
4242
// after v1.3.3, we can use UseNacosConfig to simplify
4343
public static IHostBuilder CreateHostBuilder(string[] args) =>
4444
Host.CreateDefaultBuilder(args)
45-
.UseNacosConfig(section: "NacosConfig", parser: null logAction: null)
45+
.UseNacosConfig(section: "NacosConfig", parser: null, logAction: null)
4646
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.YamlParser.YamlConfigurationStringParser.Instance logAction: null)
4747
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.IniParser.IniConfigurationStringParser.Instance logAction: null)
4848
.ConfigureWebHostDefaults(webBuilder =>

README.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ https://nacos-sdk-csharp.readthedocs.io/en/latest/
4444
// v1.3.3 版本之后, 可以用 UseNacosConfig 来简化
4545
public static IHostBuilder CreateHostBuilder(string[] args) =>
4646
Host.CreateDefaultBuilder(args)
47-
.UseNacosConfig(section: "NacosConfig", parser: null logAction: null)
47+
.UseNacosConfig(section: "NacosConfig", parser: null, logAction: null)
4848
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.YamlParser.YamlConfigurationStringParser.Instance logAction: null)
4949
// .UseNacosConfig(section: "NacosConfig", parser: Nacos.IniParser.IniConfigurationStringParser.Instance logAction: null)
5050
.ConfigureWebHostDefaults(webBuilder =>

build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<NugetVersion>1.3.5</NugetVersion>
3+
<NugetVersion>1.3.6</NugetVersion>
44
</PropertyGroup>
55
</Project>

src/Nacos/V2/Config/Impl/ConfigRpcTransportClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ protected async override Task ExecuteConfigListen()
334334
{
335335
var listenCachesMap = new Dictionary<string, List<CacheData>>();
336336
var removeListenCachesMap = new Dictionary<string, List<CacheData>>();
337+
var hasChangedKeys = false;
337338

338339
// TODO: should update logic here.....
339340
foreach (var item in _cacheMap.Values)
@@ -392,6 +393,7 @@ protected async override Task ExecuteConfigListen()
392393

393394
if (configChangeBatchListenResponse.ChangedConfigs != null && configChangeBatchListenResponse.ChangedConfigs.Any())
394395
{
396+
hasChangedKeys = true;
395397
foreach (var item in configChangeBatchListenResponse.ChangedConfigs)
396398
{
397399
var changeKey = GroupKey.GetKeyTenant(item.DataId, item.Group, item.Tenant);
@@ -450,6 +452,9 @@ protected async override Task ExecuteConfigListen()
450452
}
451453
}
452454
}
455+
456+
if (hasChangedKeys)
457+
await NotifyListenConfig().ConfigureAwait(false);
453458
}
454459

455460
private async Task RefreshContentAndCheck(string groupKey, bool notify)

0 commit comments

Comments
 (0)