Skip to content

Conversation

@nordbo
Copy link

@nordbo nordbo commented Oct 16, 2025

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

There is typo in self._chunk_cache/self.chunk_cache in guild.py which creates a memory leak, as the cache never clears.

Changes

  • renamed variable chunk_cache to _chunk_cache

Related Issues

Test Scenarios

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • [] I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

Copy link
Member

@silasary silasary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@silasary silasary changed the base branch from stable to unstable October 16, 2025 23:04
@silasary silasary merged commit bc458c2 into interactions-py:unstable Oct 16, 2025
2 checks passed
@nordbo nordbo deleted the fix/guild-chunch_cache branch October 17, 2025 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants