From 7d7d136e8b9206441a63eb6862f7763b6faa17b9 Mon Sep 17 00:00:00 2001 From: Dmitrii Korotovskii Date: Sat, 11 Oct 2025 11:48:46 +0200 Subject: [PATCH] Fixed #110. Removed chans variable override lead to memory override during channels fetch on pagination after optimizations done in previos PR #107 --- .gitignore | 1 + .vscode/launch.json | 19 +++++++++++++++++++ pkg/provider/api.go | 1 - 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 6146964..13c6c35 100644 --- a/.gitignore +++ b/.gitignore @@ -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-* diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..998f678 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/pkg/provider/api.go b/pkg/provider/api.go index effa40d..d45dc6e 100644 --- a/pkg/provider/api.go +++ b/pkg/provider/api.go @@ -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,