Skip to content

Commit 974cedc

Browse files
authored
Merge pull request #5297 from microsoft/qianjin-s187-bugfix-03
bugfix: duplicate sql server and web app nodes during refreshing.
2 parents 2dd1402 + 5e98d57 commit 974cedc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Utils/azure-explorer-common/src/com/microsoft/tooling/msservices/serviceexplorer/azure/sqlserver/SqlServerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public SqlServerModule(final Node parent) {
3737
@Override
3838
protected void refreshItems() throws AzureCmdException {
3939
List<ISqlServer> servers = Azure.az(AzureSqlServer.class).sqlServers();
40-
servers.parallelStream()
40+
servers.stream()
4141
.filter(server -> Objects.nonNull(server.entity()))
4242
.map(server -> new SqlServerNode(this, server.entity().getSubscriptionId(), server))
4343
.forEach(this::addChildNode);

Utils/azure-explorer-common/src/com/microsoft/tooling/msservices/serviceexplorer/azure/webapp/WebAppModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void run() {
104104

105105
@Override
106106
public void renderChildren(@NotNull final List<IWebApp> resourceExes) {
107-
resourceExes.parallelStream()
107+
resourceExes.stream()
108108
.filter(webApp -> StringUtils.isNotEmpty(webApp.id()))
109109
.map(webApp -> new WebAppNode(this, Utils.getSubscriptionId(webApp.id()), webApp))
110110
.forEach(this::addChildNode);

0 commit comments

Comments
 (0)