Fixed #110. Removed chans variable override lead to memory override during channels fetch on pagination after optimizations done in previos PR #107

This commit is contained in:
Dmitrii Korotovskii
2025-10-11 11:48:46 +02:00
parent c42f2d3d1c
commit 7d7d136e8b
3 changed files with 20 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
.env
.users_cache.json
.channels_cache.json
.channels_cache_v2.json
/extension.dxt/server/slack-mcp-server-*
/extension.dxt/server/index.js
/build/slack-mcp-server-*
+19
View File
@@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Connect to Docker",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "/app",
"port": 40000,
"host": "127.0.0.1",
"cwd": "${workspaceFolder}",
"trace": "verbose"
}
]
}
-1
View File
@@ -580,7 +580,6 @@ func (ap *ApiProvider) GetChannelsType(ctx context.Context, channelType string)
break
}
chans = make([]Channel, 0, len(channels))
for _, channel := range channels {
ch := mapChannel(
channel.ID,